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

VPC name is invalid #76

Open
jay-johnson opened this issue Jul 20, 2016 · 0 comments
Open

VPC name is invalid #76

jay-johnson opened this issue Jul 20, 2016 · 0 comments
Labels

Comments

@jay-johnson
Copy link

jay-johnson commented Jul 20, 2016

Looks like the train -vk failed to do the train.env file having a TRAINER=Jay Johnson.

Jay Johnson-jays-lab:us-east-1:~$ train -vk
Creating AWS VPC ...
Creating IAM Profile: Jay Johnson-jays-lab ...
Traceback (most recent call last):
  File "/home/train/bin/train", line 111, in <module>
    process()
  File "/home/train/bin/train", line 74, in process
    vpc.create_vpc()
  File "/home/train/train/vpc/vpc.py", line 488, in create_vpc
    create_iam_profile()
  File "/home/train/train/vpc/vpc.py", line 291, in create_iam_profile
    instance_profile = conn.create_instance_profile(IAM_PROFILE)
  File "/usr/local/lib/python2.7/site-packages/boto/iam/connection.py", line 1103, in create_instance_profile
    return self.get_response('CreateInstanceProfile', params)
  File "/usr/local/lib/python2.7/site-packages/boto/iam/connection.py", line 102, in get_response
    raise self.ResponseError(response.status, response.reason, body)
boto.exception.BotoServerError: BotoServerError: 400 Bad Request
<ErrorResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/">
  <Error>
    <Type>Sender</Type>
    <Code>ValidationError</Code>
    <Message>1 validation error detected: Value 'Jay Johnson-jays-lab' at 'instanceProfileName' failed to satisfy constraint: Member must satisfy regular expression pattern: [\w+=,.@-]+</Message>
  </Error>
  <RequestId>b240c5bc-4e78-11e6-8c9b-db55117da722</RequestId>
</ErrorResponse>

Removing the space fixed it:

JayJohnson-jays-lab:us-east-1:~$ train -vk
Creating AWS VPC ...
Creating IAM Profile: JayJohnson-jays-lab ...
IAM profile, role, and policy created ...
Creating VPC: JayJohnson-jays-lab ...
Creating gateway: JayJohnson-jays-lab-igw ...
Creating route table: JayJohnson-jays-lab-route-table ...
Configuring network ACL: JayJohnson-jays-lab-network-acl ...
@kizbitz kizbitz added the bug label Jul 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants