instance ec2 from s3 gave me an error #647
Unanswered
CreativeMaladjustment
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
❓ Guidance Question
The Question
After bringing the example code over and running a cdk diff/deploy or synth i get the error below. Which states that the
AttributeError: '_UserDataProxy' object has no attribute 'add_s3_download_command'
, so i comment out those lines, 48 though 57 of app.py in instance/ec2. Things then run fine so i usedinstance.user_data.add_commands(f"yum update -y")
for my user_data and it also worked and created an instance.So the question is am i doing something wrong that is causing the s3 bucket user data to not work as it is in this repo, or has something changed such that this code should/could be updated? I do not see in this cdk anything creating an S3 bucket so wonder if these lines should do that and copy this configure.sh file to the bucket for the instance or if the local file is being treated as an s3 object somehow...
(thank you)
Environment
Other information
Beta Was this translation helpful? Give feedback.
All reactions