-
Notifications
You must be signed in to change notification settings - Fork 151
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
InvalidUserData.Malformed) when calling the CreateLaunchTemplate operation #15
Comments
hi @bjxuch in the "UserData" part of the launch-template-data.json file, did you paste the actual user-data or the path to the file that contains your user data? can you please use a BASE64 decoder to check that your encoded string is ok. otherwise can you please upload your edited launch-template-data.json here or paste the content? |
pls refer the screen shot adminUser:~/environment/ec2-spot-workshops/workshops/running-amazon-ec2-workloads-at-scale (master) $ base64 --decode user-data.base64.txt packages:
runcmd:
adminUser:~/environment/ec2-spot-workshops/workshops/running-amazon-ec2-workloads-at-scale (master) $ aws ec2 create-launch-template --launch-template-name runningAmazonEC2WorkloadsAtScale123 --version-description dev --launch-template-data file://launch-template-data.json An error occurred (InvalidUserData.Malformed) when calling the CreateLaunchTemplate operation: Invalid BASE64 encoding of user data. |
Thanks for attaching user-data.base64.txt , can you please attach launch-template-data.json |
I follow the instruction and base64 the user data file, but failed on 'aws ec2 create-launch-template --launch-template-name runningAmazonEC2WorkloadsAtScale --version-description dev --launch-template-data file://launch-template-data.json'
the error is 'An error occurred (InvalidUserData.Malformed) when calling the CreateLaunchTemplate operation: Invalid BASE64 encoding of user data.'
The text was updated successfully, but these errors were encountered: