Open branic opened 1 year ago
Files identified in the description:
plugins/modules/ec2_transit_gateway.py
](https://github.com/['ansible-collections/amazon.aws', 'ansible-collections/community.aws', 'ansible-collections/community.vmware']/blob/main/plugins/modules/ec2_transit_gateway.py)If these files are inaccurate, please update the component name
section of the description or use the !component
bot command.
cc @BobBoldin @jillr @markuman @s-hertel @tremble click here for bot help
Summary
I am trying to delete a transit gateway using the ec2_transit_gateway module and receiving a
KeyError: 'Description'
when the task is executed.I did find issue #68 that is similar to this and is closed. In this comment it was stated that the
Description
key should always be returned, However, if the transit gateway is old enough (I don't know what the exact date of "old enough" is) then theDescription
key is not returned.As an example I have a transit gateway that was created on 2023-03-03 and there is no
Description
key, but a transit gateway that was created today (2023-07-21) does have aDescription
key. Using the AWS CLI (version 2.13.0) to get the information on the transit gateways shows this behavior:Issue Type
Bug Report
Component Name
ec2_transit_gateway
Ansible Version
Collection Versions
AWS SDK versions
Configuration
OS / Environment
Red Hat Enterprise Linux release 8.8 (Ootpa)
Steps to Reproduce
In an AWS region create a transit gateway that does have a description (e.g. the description field is left blank in the AWS web UI) and then create a playbook with the below tasks (ensure to setup AWS authentication). If the region the transit gateway is created in is different than
us-east-1
be sure to update the region in the tasks accordingly.Expected Results
The transit gateway is deleted
Actual Results
Code of Conduct