Skip to content
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

Can you provide the userdata scripts more easily? #3

Open
AstroTom opened this issue May 12, 2021 · 2 comments
Open

Can you provide the userdata scripts more easily? #3

AstroTom opened this issue May 12, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@AstroTom
Copy link

Hi, This is a great project and post that goes with it. However I find it cumbersome (and confusing) to have to launch a cloud9 environment, run configure.sh, then wait a few minutes, just to be able to see the Userdata scripts.

It would be great if you could provide those scripts directly here.

@horsfieldsa horsfieldsa self-assigned this May 12, 2021
@horsfieldsa
Copy link
Contributor

Hello! The user data scripts are accessible directly from the CloudFormation templates for each example that has them. Take a look at the link below and let me know if this is what you’re after. Otherwise, I can definitely look into making those easier to find. https://github.com/aws-samples/amazon-ec2-auto-scaling-group-examples/blob/main/features/lifecycle-hooks/userdata-managed-linux/template.yaml

@AstroTom
Copy link
Author

Hi Scott, thanks for the quick reply! Yes, I did eventually find the CloudFormation templates, and deciphered them. But I still think it is worth making simpler to find.

BTW when I tried using the complete-lifecycle-action CLI in my userdata I came across a bug (as confirmed by support) that if you make the call to soon (like when the instance moves from the warm pool to the ASG) it fails and reports "No active Lifecycle Action found". Thus I needed to put the complete-lifecycle-action in a retry loop in order for it to work.

@horsfieldsa horsfieldsa added the enhancement New feature or request label Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants