Skip to content

Instantly share code, notes, and snippets.

@ahmad2x4
Created May 18, 2020 00:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmad2x4/6717601c44fcadb524224e80628ce7df to your computer and use it in GitHub Desktop.
Save ahmad2x4/6717601c44fcadb524224e80628ce7df to your computer and use it in GitHub Desktop.
Pulumi sample infra source code part 10
const tfenvtest = new aws.elasticbeanstalk.Environment("webapp-env", {
application: app,
version: defaultApplicationVersion,
solutionStackName: "64bit Amazon Linux 2018.03 v4.13.1 running Node.js",
settings: [
{
name: "VPCId",
namespace: "aws:ec2:vpc",
value: vpc.id,
},
{
name: "Subnets",
namespace: "aws:ec2:vpc",
value: vpc.publicSubnetIds[0],
},
{
name: "IamInstanceProfile",
namespace: "aws:autoscaling:launchconfiguration",
value: instanceProfile.name,
},
{
name: `CONNECTION_STRING`,
namespace: "aws:elasticbeanstalk:application:environment",
value: connectionString,
},
{
name: "SecurityGroups",
namespace: "aws:autoscaling:launchconfiguration",
value: rdsSecurityGroup.id,
},
],
});
export const endpointUrl = tfenvtest.endpointUrl;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment