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

Errors with new scripts #3

Closed
ericterpstra opened this issue Oct 30, 2016 · 4 comments
Closed

Errors with new scripts #3

ericterpstra opened this issue Oct 30, 2016 · 4 comments

Comments

@ericterpstra
Copy link

On first start I now get...

Getting lowest g2.2xlarge bid... 0.160600 in us-west-2b
Setting price for spot instance at .260600 (0.10 higher than lowest spot price)
Looking for the ec2gaming AMI... ami-56bb1d36
Looking for security groups... not found. Creating security group... sg-c6741cbf
Looking for S3 bucket... ec2gaming-708253487981
Looking for instance profile... not found. Creating...
An error occurred (EntityAlreadyExists) when calling the CreateRole operation: Role with name ec2gaming already exists.

I deleted the ec2gaming role from IAM and tried again...

Getting lowest g2.2xlarge bid... 0.170000 in us-west-2b
Setting price for spot instance at .270000 (0.10 higher than lowest spot price)
Looking for the ec2gaming AMI... ami-56bb1d36
Looking for security groups... sg-c6741cbf
Looking for S3 bucket... ec2gaming-708253487981
Looking for instance profile... not found. Creating...
Parameter validation failed:
Invalid length for parameter PolicyDocument, value: 0, valid range: 1-inf
@DanielThomas
Copy link
Owner

@ericterpstra working here - can you pull and make sure you're up to date? If you're still having problems, tell me what this command gives you:

aws iam get-instance-profile --instance-profile-name ec2gaming

@ericterpstra
Copy link
Author

Yeah, I've got the latest commit. Running that command gets me:

An error occurred (NoSuchEntity) when calling the GetInstanceProfile operation: Instance Profile ec2gaming cannot be found.

@DanielThomas
Copy link
Owner

Found it, copy and paste bug when I was redirecting the command output to /dev/null. Accidentally pasted to the line that seds the template.

Try it now.

@DanielThomas
Copy link
Owner

In fact, made another change - we wait for the profile now. Should be far more reliable now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants