You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating Route53 Alias record having Beanstalk environment as a target results in the following error:
Cannot use an EBS alias as `environmentEndpoint`. You must find your EBS environment endpoint via the AWS console. See the Elastic Beanstalk developer guide: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customdomains.html
It seems CDK doesn't support CfnEnvironment.attrEndpointUrl token as the target for ARecord. Since I can't acquire Beanstalk endpoint URL via CDK, I will need to rely on AWS API. I'm thinking to query Beanstalk through AWS API after the resource is provisioned and pass string value to ARecord instead of attrEndpointUrl token. There is a problem though, how do I get notified when a particular resource is provisioned? Is there any way to do that in CDK? I can not rely on addDependency function as I'm not trying to define dependency between resources, but execute custom code right after the resource is created.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Creating Route53 Alias record having Beanstalk environment as a target results in the following error:
Here's the code:
It seems CDK doesn't support CfnEnvironment.attrEndpointUrl token as the target for ARecord. Since I can't acquire Beanstalk endpoint URL via CDK, I will need to rely on AWS API. I'm thinking to query Beanstalk through AWS API after the resource is provisioned and pass string value to ARecord instead of
attrEndpointUrl
token. There is a problem though, how do I get notified when a particular resource is provisioned? Is there any way to do that in CDK? I can not rely onaddDependency
function as I'm not trying to define dependency between resources, but execute custom code right after the resource is created.Thanks
Beta Was this translation helpful? Give feedback.
All reactions