Skip to content

Instantly share code, notes, and snippets.

@rfpedrosa
Created January 26, 2021 12:56
Show Gist options
  • Select an option

  • Save rfpedrosa/85f493644b53742153a5ac8b514d5cba to your computer and use it in GitHub Desktop.

Select an option

Save rfpedrosa/85f493644b53742153a5ac8b514d5cba to your computer and use it in GitHub Desktop.
compute-stack.ts (different platform or AMI)
// Running a different platform
const env = new elasticbeanstalk.CfnEnvironment(this, `${appName}-eb-${props.envName}`, {
environmentName: `${appName}-${props.envName}`,
applicationName: appName,
solutionStackName: '64bit Amazon Linux 2 v3.1.2 running Python 3.7',
optionSettings: options
})
// A specific AMI:
{
namespace: 'aws:autoscaling:launchconfiguration',
optionName: 'ImageId',
value: 'ami-0b578b996c2e7245a'
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment