Skip to content

APIGW: logs role is still referenced after removal #6194

@richardhboyd

Description

@richardhboyd

If I deploy an API Gateway REST API, CDK will create an IAM Role for API Gateway to push logs to CloudWatch Logs and add this Role to API Gateway's settings. If I delete the Construct the Role is deleted but the reference is not removed from API Gateway which leads users to believe that there is a Role present that is pushing logs to CWL.

Reproduction Steps

Deploy a RestApi()
Delete the RestApi()
Deploy a apigwv2.CfnApi()
Note the old Role name still present in the API Gateway console.

Error Log

Environment

  • CLI Version :
  • Framework Version:
  • OS :
  • Language :

Other


This is 🐛 Bug Report

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-apigatewayRelated to Amazon API GatewaybugThis issue is a bug.closed-for-stalenessThis issue was automatically closed because it hadn't received any attention in a while.needs-cfnThis issue is waiting on changes to CloudFormation before it can be addressed.p2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions