Skip to content

Instantly share code, notes, and snippets.

@rhysgodfrey
Last active August 29, 2015 14:07
Show Gist options
  • Save rhysgodfrey/b62a18fe429baa2dc5b5 to your computer and use it in GitHub Desktop.
Save rhysgodfrey/b62a18fe429baa2dc5b5 to your computer and use it in GitHub Desktop.
AWS Quick Start Demo - Elastic Beanstalk Setup Powershell
## https://gist.github.com/rhysgodfrey/b28ac3883bb78dd4f6f6 should be saved in the same directory as this script
## Values should be taken from the Cloud formation output variables after running aws-quick-start-demo-create-vpc-and-resources.ps1
$securityGroup = "sg-XYZ123";
$role = "ROLE-NAME";
$subnets = "subnet-XYZ123,subnet-XYZ456,subnet-XYZ789";
$vpc = "vpc-XYZ123";
## Value should be the name of an EC2 Key Pair you have access to
$key = "KEY-NAME";
$template = Get-Content .\beanstalk-setup.template -Raw
New-CFNStack -StackName "AWSQuickStartDemoBeanstalk" -TemplateBody $template -Parameters @( @{ ParameterKey="KeyName";ParameterValue=$key }, @{ ParameterKey="Role";ParameterValue=$role }, @{ ParameterKey="SecurityGroup";ParameterValue=$securityGroup }, @{ ParameterKey="Subnets";ParameterValue=$subnets }, @{ ParameterKey="VPC";ParameterValue=$vpc } )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment