Last active
August 29, 2015 14:07
-
-
Save rhysgodfrey/b62a18fe429baa2dc5b5 to your computer and use it in GitHub Desktop.
AWS Quick Start Demo - Elastic Beanstalk Setup Powershell
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://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