You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating an IAM instance profile and modifying an EC2 instance to use it, I get the error: Invalid IAM Instance Profile name
This seems to be the same sort of thing that was reported in #1885 and fixed by #2037. The difference being this is when an EC2 instance is modified, not when it is created.
Please list the steps required to reproduce the issue, for example:
terraform apply to create the EC2 instance
Edit the tf file to uncomment the aws_iam_role.foo, aws_iam_instance_profile.foo, and the iam_instance_profile argument on the aws_instance.foo resource
terraform apply to create the EC2 instance
Expected Behavior
The aws_iam_role and aws_iam_instance_profile should be created and the aws_instance modified to use the instance profile.
Actual Behavior
The aws_iam_role and aws_iam_instance_profile are created fine, but when the aws_instance is being modified the following error occurs:
Error applying plan:
1 error(s) occurred:
* aws_instance.foo: 1 error(s) occurred:
* aws_instance.foo: InvalidParameterValue: Value (foo) for parameter iamInstanceProfile.name is invalid. Invalid IAM Instance Profile name
status code: 400, request id: 9e5d217e-6b5d-41dc-a856-f2d5b31747a6
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Apr 9, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When creating an IAM instance profile and modifying an EC2 instance to use it, I get the error:
Invalid IAM Instance Profile name
This seems to be the same sort of thing that was reported in #1885 and fixed by #2037. The difference being this is when an EC2 instance is modified, not when it is created.
Terraform Version
0.9.8
Affected Resource(s)
Terraform Configuration Files
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
to create the EC2 instanceaws_iam_role.foo
,aws_iam_instance_profile.foo
, and theiam_instance_profile
argument on theaws_instance.foo
resourceterraform apply
to create the EC2 instanceExpected Behavior
The
aws_iam_role
andaws_iam_instance_profile
should be created and theaws_instance
modified to use the instance profile.Actual Behavior
The
aws_iam_role
andaws_iam_instance_profile
are created fine, but when theaws_instance
is being modified the following error occurs:References
The text was updated successfully, but these errors were encountered: