Closed evantbyrne closed 2 years ago
AWS has some documentation on the instance role at https://docs.aws.amazon.com/apprunner/latest/dg/security_iam_service-with-iam.html#security_iam_service-with-iam-roles. The permissions needed will basically depend on what your application does.
AWS has some documentation on the instance role at https://docs.aws.amazon.com/apprunner/latest/dg/security_iam_service-with-iam.html#security_iam_service-with-iam-roles. The permissions needed will basically depend on what your application does.
From reading that documentation, it does seem to me that the instance role is optional. Under the Instance Role heading it says
The instance role is an optional role that App Runner uses to provide permissions to AWS service actions
This functionality has been released in v3.67.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.
For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!
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.
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Expected Behavior
Expected to create App Runner service, because the InstanceConfiguration documentation indicates that InstanceRoleArn is optional.
As an aside question: If I were to create a role for this, what would that look like? I'm having difficulty finding documentation on what a minimal role for this looks like.
Actual Behavior
App Runner service is not created, because instance_configuration.instance_role_arn is marked as required. Additionally, if I remove instance_configuration entirely then Terraform succeeds in creating the service.
Steps to Reproduce
terraform apply
Thanks, βEvan