-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ec2: cfn-init support in ASGs #1413
Comments
To to make sure I understand the problem: What you could do is simply use `/opt/aws/bin/cfn-signal -e $? --stack ${new cdk.AwsStackName()} --resource ${asgResource.logicalId} --region ${new cdk.AwsRegion}`, As for a longer term solution, I am not sure this is actually a very common need in the general sense, but perhaps we can provide a nice abstract to 'cfn-signal' so you could do something like:
And it will return the "correct" cfn-signal command bound to this specific ASG. |
thanks a lot, did the expected behavior with |
I will keep this open (and change title) so we can use this as an example for the cfn-init support, okay? |
okay, thanks. |
Related: #777 |
It seems that |
For future reference, this is how you can get the logical ID for the autoscaling group: const autoScalingGroupCfn = <CfnAutoScalingGroup> autoscalingGroup.node.tryFindChild('ASG');
console.log(autoScalingGroupCfn.logicalId); |
Hello, any workaround to make cfn-init (AWS::CloudFormation::Init:) work with CDK? Is there a way to add the CloudFormation directly when CDK does not support a feature like this? |
Related to #777 |
i tried to use this and got When applying CloudFormationInit, you must also configure signals by supplying 'signals' at instantiation time. |
This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
I want to use the logical ID of the resource created in the construct library.
For example,
cfn-signal
require AutoScalingGroup's logical id.I wrote this code.
However Circular dependency caused.
This will be solved by specifying a name or not have a hash in construct library.
The text was updated successfully, but these errors were encountered: