iann0036 / AWSConsoleRecorder

Records actions made in the AWS Management Console and outputs the equivalent CLI/SDK commands and CloudFormation/Terraform templates.
MIT License
1.43k stars 86 forks source link

Missing Tags in output for CFN #34

Open ustrahlendorf opened 5 years ago

ustrahlendorf commented 5 years ago

Describe the bug Noticed that Tags seems not get transferred into the output for CFN. Output for boto3 has the tags included. example for CFN: Resources: ec20062a21: Type: "AWS::EC2::VPC" Properties: CidrBlock: "10.1.0.0/16" InstanceTenancy: "default" Resources: ec20062a21: Type: "AWS::EC2::VPC" Properties: CidrBlock: "10.1.0.0/16" InstanceTenancy: "default"

ec2eb57359:
    Type: "AWS::EC2::InternetGateway"

Same resource in Boto3: response = ec2_client.create_vpc( CidrBlock='10.1.0.0/16', AmazonProvidedIpv6CidrBlock=False, InstanceTenancy='default' ) response = ec2_client.create_tags( Resources=[ 'vpc-0192bf319969f9c91' ], Tags=[ { 'key': 'Name', 'value': 'LabVPC' } ] ) response = ec2_client.describe_vpcs() response = ec2_client.describe_account_attributes() response = ec2_client.describe_account_attributes() response = ec2_client.describe_internet_gateways() response = ec2_client.create_internet_gateway( ) response = ec2_client.create_tags( Resources=[ 'igw-0ad4370f4e7ebd627' ], Tags=[ { 'key': 'Name', 'value': 'LabIGW' } ] ) Seems that create tags is not mapped.

iann0036 commented 5 years ago

Hi Uwe,

Thanks for raising. The reason this wasn't captured is because only the details in the initial call is currently captured. This is a huge amount of work to the project and I'm currently working on some alternatives for this, but don't expect anything in the next month or so.

For now, you'll probably have to map the tags yourself but I will prioritise this issue when I get around to that bit of work.

Relates to #2

ustrahlendorf commented 5 years ago

Hi Ian, understand, no problem. Take care regards uwe