hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.83k stars 9.18k forks source link

[Bug]: aws_appconfig_extension action_point.role_arn shouldn't be required #38709

Closed tommyallieri closed 2 months ago

tommyallieri commented 3 months ago

Terraform Core Version

1.5.7

AWS Provider Version

5.61.0

Affected Resource(s)

aws_appconfig_extension action_point > role_arn

Expected Behavior

I should be able to create an extension pointing to the default event bus using something like, without a role_arn as not required by AWS.

image

Actual Behavior

role_arn is required and I can't create an extension pointing to eventbridge as

error without role_arn specified

│ Error: Missing required argument
│ 
│   on main.tf line 31, in resource "aws_appconfig_extension" "this":
│   31:     action {
│ 
│ The argument "role_arn" is required, but no definition was found.

error with custom role_arn specified

Error: creating AWS AppConfig Extension (deployment-notification): operation error AppConfig: CreateExtension, https response error StatusCode: 400, RequestID: 45cf81a9-d19e-46f6-b47d-18354928ae36, BadRequestException: EventBridge extension actions should not be used with a custom Role ARN.

error with role_arn = null

│ Error: Missing required argument
│ 
│   with module.appconfig.aws_appconfig_extension.this,
│   on main.tf line 16, in resource "aws_appconfig_extension" "this":
│   16: resource "aws_appconfig_extension" "this" {
│ 
│ The argument "action_point.0.action.0.role_arn" is required, but no
│ definition was found.

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

data "aws_cloudwatch_event_bus" "default" {
  name = "default"
}

resource "aws_appconfig_extension" "this" {
  name = "name"

  action_point {
    point = "ON_DEPLOYMENT_START"
    action {
      name     = "Deployment start"
      uri      = data.aws_cloudwatch_event_bus.default.arn
    }
  }
}

Steps to Reproduce

terraform apply

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

github-actions[bot] commented 3 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

tommyallieri commented 3 months ago

see Cloudformation documentation, RoleArn is not required https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appconfig-extension-action.html

github-actions[bot] commented 2 months ago

[!WARNING] This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them.

Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.

github-actions[bot] commented 2 months ago

This functionality has been released in v5.66.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!

github-actions[bot] commented 1 month ago

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.