Environment tier definition not found #656
-
Guidance QuestionError while create worker beanstalk The QuestionHi!, I'm trying to create SQS worker environment on beanstalk, but i get error
I read docs and set tier values from this: https://docs.aws.amazon.com/cdk/api/v1/docs/@aws-cdk_aws-elasticbeanstalk.CfnEnvironment.TierProperty.html or https://docs.aws.amazon.com/ko_kr/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-environment-tier.html But if i set value for Web server tier it's work fine I've not found example for worker environment, please help solve this problem CDK CLI Version2.19.0 Exampleexport class AwsEBSStack extends Stack {
constructor(scope: Construct, id: string, props?: StackProps) {
super(scope, id, props);
// create new IAM role for EBS
const role = new iam.Role(this, 'Beanstalk-Role', {
assumedBy: new iam.ServicePrincipal('elasticbeanstalk.amazonaws.com')
})
//objects for access parameters
const node = this.node;
const appName = 'MyApp1';
const platform = node.tryGetContext("platform");
const app = new elasticbeanstalk.CfnApplication(this, 'Application', {
applicationName: appName
});
const env = new elasticbeanstalk.CfnEnvironment(this, 'Environment', {
environmentName: 'MySampleEnvironment2',
applicationName: app.applicationName || appName,
platformArn: platform,
solutionStackName: '64bit Amazon Linux 2 v5.5.1 running Node.js 14',
optionSettings: [{
namespace: 'aws:autoscaling:launchconfiguration',
optionName: 'IamInstanceProfile',
resourceName: 'MySampleEnvironment2',
value: 'aws-elasticbeanstalk-ec2-role',
}],
tier: {
name: 'Worker',
type: 'SQS',
},
});
env.addDependsOn(app);
}
} OSLinux x64 LanguageTypescript Other informationCREATE_FAILED |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
solution tier: {
name: 'Worker',
type: 'SQS/HTTP',
}, |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
solution