This file contains 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 | |
yum update -y | |
curl -o /tmp/epel-release-latest-7.noarch.rpm https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
rpm -i /tmp/epel-release-latest-7.noarch.rpm | |
yum install -y etckeeper | |
etckeeper init | |
etckeeper commit -m "Initial commit" | |
useradd -m -U sas | |
useradd -m -U sasdemo |
This file contains 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
+ | |
| bastion-privateIP produzione-privateIP | |
+--+ +-------------+ | +-------------+ +------------+ | |
| | | | | | | | | | |
| | | COLLAUDO | | | BASTION | | PRODUZIONE | | |
+--+ | | | | | | | | |
+------+ +-------------+ | +-------------+ +------------+ | |
collaudo-publicIP | bastion-publicIP | |
LOCAL + |
This file contains 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 | |
REPONAME="reponame" | |
REPODESC="Description of repo" | |
PROFILE="profile name" | |
REGION="eu-west-1" | |
USERNAME="" | |
SSH_KEY=`cat ~/.ssh/id_rsa.pub` |
- Add to EC2 CodeCommitReadOnly Role
- sudo yum install -y awscli
- sudo rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/rhel6/x86_64/city-fan.org-release-1-13.rhel6.noarch.rpm
- sudo yum install -y libcurl
- git config --global credential.helper '!aws codecommit credential-helper $@'
This file contains 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 | |
for region in `echo -e "us-east-1\nus-east-2\nus-west-1\nus-west-2\nap-northeast-2\nap-southeast-1\nap-southeast-2\nap-northeast-1\neu-central-1\neu-west-1"` | |
do | |
echo -e "$region" && aws --region $region ec2 describe-images --owners aws-marketplace --filters Name=product-code,Values=aw0evgkw8e5c1q413zgy5pjce --query "Images[].ImageId" | |
done |
This file contains 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
# https://github.com/mitchellh/vagrant-aws | |
# vagrant plugin install vagrant-aws | |
# vagrant box add dummy https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box | |
# vagrant up --provider=aws | |
Vagrant.configure("2") do |config| | |
config.vm.box = "dummy" | |
config.vm.provider :aws do |aws, override| | |
aws.keypair_name = "<keypair name>" |
I hereby claim:
- I am ddepaoli3 on github.
- I am danielxp (https://keybase.io/danielxp) on keybase.
- I have a public key ASCMX_q3sMoXCdiUhkBtVd3a0l4fTy7mOrEI8MCc4y4mugo
To claim this, I am signing this object:
This file contains 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 | |
#Install prerequisities | |
sudo apt-get update | |
sudo apt-get install --yes python2.7 git ansible awscli | |
#Go to home | |
export HOME='/root' | |
cd $HOME |
This file contains 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 | |
############ | |
## README ## | |
############ | |
#This script updates DNS with the ip of the machine from which the script is launch. | |
#The instance or who launch this script needs this permission to hosted zone: | |
# | |
# | |
# route53:ChangeResourceRecordSets |
OlderNewer