-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
issue #4449 Fix the issue using Arn field instead of Name in IamInstanceProfileSpecification #4511
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,13 +27,15 @@ resource "aws_spot_fleet_request" "cheap_compute" { | |
ami = "ami-1234" | ||
spot_price = "2.793" | ||
placement_tenancy = "dedicated" | ||
iam_instance_profile_arn = "arn:aws:iam::12345678:instance-profile/webserver-role" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should either fix this so its a properly formatted ARN (account ID is 12 digits
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done 👍 |
||
} | ||
|
||
launch_specification { | ||
instance_type = "m4.4xlarge" | ||
ami = "ami-5678" | ||
key_name = "my-key" | ||
spot_price = "1.117" | ||
iam_instance_profile_arn = "arn:aws:iam::12345678:instance-profile/webserver-role" | ||
availability_zone = "us-west-1a" | ||
subnet_id = "subnet-1234" | ||
weighted_capacity = 35 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please
iam_instance_profile
argumentiam_instance_profile
is fine 👍There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Documented the new argument under
launch_specification
section and added the acceptance test.