Properties
Optional
applicationLogging
applicationPort
applicationPort: number
Optional
blockDevices
blockDevices?: BlockDevice[]
Optional
imageRecipe
imageRecipe?: string | AmigoProps
instanceType
instanceType: InstanceType
Optional
privateSubnets
privateSubnets?: ISubnet[]
Optional
publicSubnets
publicSubnets?: ISubnet[]
Optional
roleConfiguration
Optional
withoutImdsv2
withoutImdsv2?: boolean
Configuration options for the [[
GuEc2App
]] pattern.To grant EC2 instances additional IAM permissions, use the
roleConfiguration
prop. For example, to allow your app to write to DynamoDB:To create alarms (recommended), use:
To opt out of creating alarms, use:
To automatically ship application logs from
stdout
to ELK, use:For more details on the requirements for application log shipping, see [[
ApplicationLoggingProps
]].To enable access logging for your load balancer, you can specify the prefix to write the logs to. The S3 bucket used to hold these access logs must be specified in SSM at
/account/services/access-logging/bucket
You must specify a region in your stack declaration if you are to use this prop, as specified here: https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-elasticloadbalancingv2.ApplicationLoadBalancer.html#logwbraccesswbrlogsbucket-prefix For example: