This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
AWS="aws" | |
INSTANCE_NAME="" | |
EPOCH=$(date +%s) | |
AMI_ID="" | |
# To show usage of the script | |
print_usage() { | |
printf "Usage: create-ami.sh -i instance-id -r region -l launch-template-id" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# The below script can be used to export data from old database and move to new database. | |
USERNAME="" | |
PASSWORD="" | |
OLD_HOST="" | |
OLD_PORT="" | |
NEW_HOST="" | |
NEW_PORT="" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"encoding/json" | |
"flag" | |
"fmt" | |
"github.com/aws/aws-sdk-go/aws" | |
"github.com/aws/aws-sdk-go/aws/session" | |
"github.com/aws/aws-sdk-go/service/sqs" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"flag" | |
"bytes" | |
"encoding/json" | |
"github.com/aws/aws-sdk-go/aws" |