Skip to content

Instantly share code, notes, and snippets.

@antklim
Last active March 23, 2018 07:21
Show Gist options
  • Save antklim/2d9faa8a7b77ebeee06897c61d1ee792 to your computer and use it in GitHub Desktop.
Save antklim/2d9faa8a7b77ebeee06897c61d1ee792 to your computer and use it in GitHub Desktop.
#!/bin/bash
PROFILE=$1
REGION=$2
BUCKET=$3
AWS_PROFILE=$PROFILE AWS_REGION=$REGION aws s3 cp ./cloudformation/cf.bastion.instance.yml s3://$BUCKET/cf.bastion.instance.yml
AWS_PROFILE=$PROFILE AWS_REGION=$REGION aws s3 cp ./cloudformation/cf.loadbalancer.yml s3://$BUCKET/cf.loadbalancer.yml
AWS_PROFILE=$PROFILE AWS_REGION=$REGION aws s3 cp ./cloudformation/cf.master.yml s3://$BUCKET/cf.master.yml
AWS_PROFILE=$PROFILE AWS_REGION=$REGION aws s3 cp ./cloudformation/cf.network.yml s3://$BUCKET/cf.network.yml
AWS_PROFILE=$PROFILE AWS_REGION=$REGION aws s3 cp ./cloudformation/cf.security.groups.yml s3://$BUCKET/cf.security.groups.yml
AWS_PROFILE=$PROFILE AWS_REGION=$REGION aws s3 cp ./cloudformation/cf.service.instance.yml s3://$BUCKET/cf.service.instance.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment