iann0036 / AWSConsoleRecorder

Records actions made in the AWS Management Console and outputs the equivalent CLI/SDK commands and CloudFormation/Terraform templates.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing Tags in output for CFN

ustrahlendorf opened this issue · comments

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.

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

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