This is the log and we want the list of tag coming under "c7n:MatchedFilters"
4844905100000003",
"GroupId": "sg-016abb0533b5b9082"
},
{
"GroupName": "gsus-prod-net-01-win-sg-20220512164844866600000001",
"GroupId": "sg-0257bb3846318d5fd"
},
{
"GroupName": "gsus-prod-net-01-app-4567-prod-1-web-1-sg",
"GroupId": "sg-08a32c6c1fd77d74c"
}
],
"Ipv6Addresses": [],
"MacAddress": "12:82:2d:d7:0e:77",
"NetworkInterfaceId": "eni-0cf7cff30aa78de47",
"OwnerId": "189682858917",
"PrivateDnsName": "ip-172-23-42-148.ec2.internal",
"PrivateIpAddress": "172.23.42.148",
"PrivateIpAddresses": [
{
"Primary": true,
"PrivateDnsName": "ip-172-23-42-148.ec2.internal",
"PrivateIpAddress": "172.23.42.148"
}
],
"SourceDestCheck": true,
"Status": "in-use",
"SubnetId": "subnet-07a45e67dbf4d63aa",
"VpcId": "vpc-0e8954f5da98fe98d",
"InterfaceType": "interface"
}
],
"RootDeviceName": "/dev/sda1",
"RootDeviceType": "ebs",
"SecurityGroups": [
{
"GroupName": "gsus-prod-net-01-cmdb-sg-2022051216484634970000000a",
"GroupId": "sg-04908349d0f791aec"
},
{
"GroupName": "gsus-prod-net-01-web-sg-20220512164845489300000007",
"GroupId": "sg-031fac541f8a85381"
},
{
"GroupName": "gsus-prod-net-01-dtc-sg-20220512164844905100000003",
"GroupId": "sg-016abb0533b5b9082"
},
{
"GroupName": "gsus-prod-net-01-win-sg-20220512164844866600000001",
"GroupId": "sg-0257bb3846318d5fd"
},
{
"GroupName": "gsus-prod-net-01-app-4567-prod-1-web-1-sg",
"GroupId": "sg-08a32c6c1fd77d74c"
}
],
"SourceDestCheck": true,
"Tags": [
{
"Key": "Repository",
"Value": "https://github.thehartford.com/HIG/gs_tfe_servicebus_app4567"
},
{
"Key": "hig-data-classification",
"Value": "CompanyConfidential"
},
{
"Key": "module_name",
"Value": "terraform-aws-ec2-instance"
},
{
"Key": "BackupGroup",
"Value": "GSUSProdSilverEC2"
},
{
"Key": "DynatraceMonitoring",
"Value": "true"
},
{
"Key": "Domain",
"Value": "ad1.prod"
},
{
"Key": "Comments",
"Value": ""
},
{
"Key": "hig-billing",
"Value": "APP-4567"
},
{
"Key": "hig-environment-type",
"Value": "PROD"
},
{
"Key": "AppTier",
"Value": "Web"
},
{
"Key": "IMDSv2 Date",
"Value": "04/24/2023, 16:15:21"
},
{
"Key": "IMDSv2",
"Value": "Enabled"
},
{
"Key": "Hosted Region",
"Value": "US"
},
{
"Key": "Owner",
"Value": "HIG"
},
{
"Key": "Schedule",
"Value": ""
},
{
"Key": "ServiceTier",
"Value": "Silver"
},
{
"Key": "Name",
"Value": "ServiceBus-app-4567-prod-ue1-web02"
},
{
"Key": "DB Nodes",
"Value": "None"
},
{
"Key": "Description",
"Value": ""
},
{
"Key": "Hostname",
"Value": "a4567e1pdweb002"
},
{
"Key": "ThirdParty",
"Value": "Yes"
},
{
"Key": "OS",
"Value": "Windows 2016"
},
{
"Key": "module_version",
"Value": "v4.3.2"
},
{
"Key": "Environment",
"Value": "PROD"
},
{
"Key": "DataClassification",
"Value": "CompanyConfidential"
},
{
"Key": "AppClass",
"Value": "Silver"
},
{
"Key": "Lifecycle",
"Value": "Provisioning"
},
{
"Key": "hig-planit-appid",
"Value": "APP-4567-PROD"
},
{
"Key": "AppName",
"Value": "Service Bus"
},
{
"Key": "Billing",
"Value": "APP-4567"
},
{
"Key": "Pipeline",
"Value": "https://jenkinsci.thehartford.com/iac-1/job/IAC/job/GS/job/ServiceBus-4567/job/gsus_4567_servicebus-ue1_aws_gsprod/"
},
{
"Key": "map-migrated",
"Value": "d-server-026syrvrlphyig"
},
{
"Key": "PatchingFlag",
"Value": "Tag Applied"
},
{
"Key": "LOB",
"Value": "Global Specialty"
},
{
"Key": "AppOwner",
"Value": "Marty Cabeceiras"
},
{
"Key": "Alias Names",
"Value": "asbngwebprod02"
},
{
"Key": "AppId",
"Value": "APP-4567"
},
{
"Key": "hig-owner",
"Value": "marty.cabeceiras@thehartford.com"
},
{
"Key": "PatchGroup",
"Value": "Non DB Node B"
}
],
"VirtualizationType": "hvm",
"CpuOptions": {
"CoreCount": 4,
"ThreadsPerCore": 2
},
"CapacityReservationSpecification": {
"CapacityReservationPreference": "open"
},
"HibernationOptions": {
"Configured": false
},
"MetadataOptions": {
"State": "applied",
"HttpTokens": "required",
"HttpPutResponseHopLimit": 1,
"HttpEndpoint": "enabled",
"HttpProtocolIpv6": "disabled",
"InstanceMetadataTags": "disabled"
},
"EnclaveOptions": {
"Enabled": false
},
"PlatformDetails": "Windows",
"UsageOperation": "RunInstances:0002",
"UsageOperationUpdateTime": "2023-04-24T15:58:42+00:00",
"PrivateDnsNameOptions": {
"HostnameType": "ip-name",
"EnableResourceNameDnsARecord": false,
"EnableResourceNameDnsAAAARecord": false
},
"MaintenanceOptions": {
"AutoRecovery": "default"
},
"CurrentInstanceBootMode": "legacy-bios",
"c7n:MatchedFilters": [
"tag:AccountType",
"tag:Attributes",
"tag:EnvironmentType",
"tag:ImageBuilder"
]
},
{
"AmiLaunchIndex": 0,
"ImageId": "ami-08435a7e5e61bc00b",
"InstanceId": "i-0b307f45f965d4222",
"InstanceType": "r5b.2xlarge",
"KeyName": "gsus-prod-net-01-key",
"LaunchTime": "2024-07-19T15:42:09+00:00",
"Monitoring": {
"State": "disabled"
},
"Placement": {
"AvailabilityZone": "us-east-1b",
"GroupName": "",
"Tenancy": "default"
},
"Platform": "windows",
"PrivateDnsName": "ip-172-23-43-196.ec2.internal",
"PrivateIpAddress": "172.23.43.196",
"ProductCodes": [],
"PublicDnsName": "",
"State": {
"Code": 16,
"Name": "running"
},
"StateTransitionReason": "",
"SubnetId": "subnet-03aa1e87392c5e63d",
"VpcId": "vpc-0e8954f5da98fe98d",
"Architecture": "x86_64",
"BlockDeviceMappings": [
{
"DeviceName": "/dev/sda1",
"Ebs": {
"AttachTime": "2024-07-19T15:41:21+00:00",
"DeleteOnTermination": false,
"Status": "attached",
"VolumeId": "vol-0d39da483194fdffa"
}
},
{
"DeviceName": "/dev/xvdf",
"Ebs": {
"AttachTime": "2023-07-06T19:30:04+00:00",
"DeleteOnTermination": false,
"Status": "attached",
"VolumeId": "vol-07813f09191a4af20"
}
},
{
"DeviceName": "/dev/xvdg",
"Ebs": {
"AttachTime": "2023-07-06T19:30:15+00:00",
"DeleteOnTermination": false,
"Status": "attached",
"VolumeId": "vol-05d213e8588431029"
}
},
{
"DeviceName": "/dev/xvdh",
"Ebs": {
"AttachTime": "2023-07-06T19:29:54+00:00",
"DeleteOnTermination": false,
"Status": "attached",
"VolumeId": "vol-08849724290ff4ff0"
}
},
{
"DeviceName": "/dev/xvdi",
"Ebs": {
"AttachTime": "2023-07-06T19:29:54+00:00",
"DeleteOnTermination": false,
"Status": "attached",
"VolumeId": "vol-0711192d14ffdc4ff"
}
},
{
"DeviceName": "/dev/xvdj",
"Ebs": {
"AttachTime": "2023-07-06T19:30:25+00:00",
"DeleteOnTermination": false,
"Status": "attached",
"VolumeId": "vol-0d8db3494a8c7254c"
}
},
{
"DeviceName": "/dev/xvdk",
"Ebs": {
"AttachTime": "2023-07-06T19:30:16+00:00",
"DeleteOnTermination": false,
"Status": "attached",
"VolumeId": "vol-0cba7f29aec3d9a35"
}
},
{
"DeviceName": "/dev/xvdl",
"Ebs": {
"AttachTime": "2023-07-06T19:30:15+00:00",
"DeleteOnTermination": false,
"Status": "attached",
"VolumeId": "vol-0810a5ac78ecf0e11"
}
},
{
"DeviceName": "/dev/xvdm",
"Ebs": {
"AttachTime": "2023-07-06T19:30:15+00:00",
"DeleteOnTermination": false,
"Status": "attached",
"VolumeId": "vol-0e4ec2b5f1bf4d871"
}
},
{
"DeviceName": "/dev/xvdn",
"Ebs": {
"AttachTime": "2023-07-06T19:29:54+00:00",
"DeleteOnTermination": false,
"Status": "attached",
"VolumeId": "vol-092a40b78baeeac7f"
}
},
{
"DeviceName": "/dev/xvdo",
"Ebs": {
"AttachTime": "2023-07-06T19:29:55+00:00",
"DeleteOnTermination": false,
"Status": "attached",
"VolumeId": "vol-0b1e2d02d509f3f5e"
}
},
{
"DeviceName": "/dev/xvdp",
"Ebs": {
"AttachTime": "2023-07-06T19:30:15+00:00",
"DeleteOnTermination": false,
"Status": "attached",
"VolumeId": "vol-01cabf285c719295f"
}
}
],
"ClientToken": "terraform-20230706192857135700000004",
"EbsOptimized": true,
"EnaSupport": true,
"Hypervisor": "xen",
"IamInstanceProfile": {
"Arn": "arn:aws:iam::189682858917:instance-profile/hig/WindowsEC2Role",
"Id": "AIPASYKP2XOSSBXPPW5LL"
},
"NetworkInterfaces": [
{
"Attachment": {
"AttachTime": "2023-07-06T19:28:58+00:00",
"AttachmentId": "eni-attach-09192f2a4fbf5a17d",
"DeleteOnTermination": false,
"DeviceIndex": 0,
"Status": "attached",
"NetworkCardIndex": 0
},
"Description": "",
"Groups": [
{
"GroupName": "gsus-prod-net-01-cmdb-sg-2022051216484634970000000a",
"GroupId": "sg-04908349d0f791aec"
},
{
"GroupName": "gsus-prod-net-01-sql-sg-20220512164845082300000004",
"GroupId": "sg-0b214ef19d0a4c0f7"
},
{
"GroupName": "gsus-prod-net-01-app-4587-v2sql-sg-20230707183929669400000001",
"GroupId": "sg-0c2f333cbfb09b29f"
},
{
"GroupName": "gsus-prod-net-01-win-sg-20220512164844866600000001",
"GroupId": "sg-0257bb3846318d5fd"
}
],
"Ipv6Addresses": [],
"MacAddress": "12:90:ce:a5:ca:a1",
"NetworkInterfaceId": "eni-0086b400faa99451d",
"OwnerId": "189682858917",
"PrivateDnsName": "ip-172-23-43-196.ec2.internal",
"PrivateIpAddress": "172.23.43.196",
"PrivateIpAddresses": [
{
"Primary": true,
"PrivateDnsName": "ip-172-23-43-196.ec2.internal",
"PrivateIpAddress": "172.23.43.196"
},
{
"Primary": false,
"PrivateDnsName": "ip-172-23-43-163.ec2.internal",
"PrivateIpAddress": "172.23.43.163"
},
{
"Primary": false,
"PrivateDnsName": "ip-172-23-43-141.ec2.internal",
"PrivateIpAddress": "172.23.43.141"
}
],
"SourceDestCheck": true,
"Status": "in-use",
"SubnetId": "subnet-03aa1e87392c5e63d",
"VpcId": "vpc-0e8954f5da98fe98d",
"InterfaceType": "interface"
}
],
"RootDeviceName": "/dev/sda1",
"RootDeviceType": "ebs",
"SecurityGroups": [
{
"GroupName": "gsus-prod-net-01-cmdb-sg-2022051216484634970000000a",
"GroupId": "sg-04908349d0f791aec"
},
{
"GroupName": "gsus-prod-net-01-sql-sg-20220512164845082300000004",
"GroupId": "sg-0b214ef19d0a4c0f7"
},
{
"GroupName": "gsus-prod-net-01-app-4587-v2sql-sg-20230707183929669400000001",
"GroupId": "sg-0c2f333cbfb09b29f"
},
{
"GroupName": "gsus-prod-net-01-win-sg-20220512164844866600000001",
"GroupId": "sg-0257bb3846318d5fd"
}
],
"SourceDestCheck": true,
"Tags": [
{
"Key": "Description",
"Value": ""
},
{
"Key": "hig-owner",
"Value": "mahesh.vidyasagar@thehartford.com"
},
{
"Key": "Billing",
"Value": "APP-4587"
},
{
"Key": "Repository",
"Value": "https://github.thehartford.com/HIG/gs_tfe_peoplesoft_app4587"
},
{
"Key": "Schedule",
"Value": "None"
},
{
"Key": "mssql_adou",
"Value": "OU=SQL-GS,OU=Windows,OU=Cloud,OU=Servers,DC=ad1,DC=prod"
},
{
"Key": "child_module_name",
"Value": "terraform-aws-ec2-db-mssql"
},
{
"Key": "mssql_instancename",
"Value": "MSSQLSERVER"
},
{
"Key": "module_name",
"Value": "terraform-aws-ec2-instance"
},
{
"Key": "Pipeline",
"Value": "https://jenkinsci.thehartford.com/iac-1/job/IAC/job/GS/job/PeopleSoft-4587/job/gsus_4587_peoplesoft_aws_gsprod/"
},
{
"Key": "IMDSv2",
"Value": "Enabled"
},
{
"Key": "IMDSv2 Date",
"Value": "07/06/2023, 19:30:24"
},
{
"Key": "PatchGroup",
"Value": "Multiple DB Node AZ2"
},
{
"Key": "module_version",
"Value": "v4.0.6"
},
{
"Key": "BackupDBGroup",
"Value": "ec2-sqldb-prod-silver"
},
{
"Key": "mssql_version",
"Value": "2019"
},
{
"Key": "AppOwner",
"Value": "Mahesh Vidyasagar"
},
{
"Key": "hig-planit-appid",
"Value": "APP-4587-PROD"
},
{
"Key": "ServiceTier",
"Value": "Silver"
},
{
"Key": "DBNodes",
"Value": "Secondary"
},
{
"Key": "Hostname",
"Value": "a4587ue1pwsag06"
},
{
"Key": "mssql_datavolumes",
"Value": "4"
},
{
"Key": "mssql_installtype",
"Value": "SAG"
},
{
"Key": "hig-data-classification",
"Value": "CompanyConfidential"
},
{
"Key": "PatchingFlag",
"Value": "Tag Applied"
},
{
"Key": "Environment",
"Value": "prod"
},
{
"Key": "Owner",
"Value": "HIG"
},
{
"Key": "hig-billing",
"Value": "APP-4587"
},
{
"Key": "mssql_environment",
"Value": "prod"
},
{
"Key": "Domain",
"Value": "ad1.prod"
},
{
"Key": "AppName",
"Value": "PeopleSoft"
},
{
"Key": "ThirdParty",
"Value": "No"
},
{
"Key": "child_module_version",
"Value": "v2.2.1"
},
{
"Key": "Hosted Region",
"Value": "US"
},
{
"Key": "Name",
"Value": "PeopleSoft-4587-PROD-sag-06"
},
{
"Key": "BackupGroup",
"Value": "ec2-nobackup"
},
{
"Key": "LOB",
"Value": "Global Specialty"
},
{
"Key": "Patching Group",
"Value": "Multiple DB Node AZ1"
},
{
"Key": "backup_s3bucket",
"Value": "gs-gsus-prod-net-01-sqlbackup-us-east-1"
},
{
"Key": "DynatraceMonitoring",
"Value": "true"
},
{
"Key": "mssql_collation",
"Value": "Latin1_General_BIN"
},
{
"Key": "DataClassification",
"Value": "CompanyConfidential"
},
{
"Key": "AppId",
"Value": "APP-4587"
},
{
"Key": "AppTier",
"Value": "DB"
},
{
"Key": "hig-environment-type",
"Value": "PROD"
},
{
"Key": "backup_s3bucketkms",
"Value": "arn:aws:kms:us-east-1:189682858917:key/e4b94c9a-82ad-4322-98ec-48d610f6548b"
},
{
"Key": "Comments",
"Value": ""
}
],
"VirtualizationType": "hvm",
"CpuOptions": {
"CoreCount": 4,
"ThreadsPerCore": 1
},
"CapacityReservationSpecification": {
"CapacityReservationPreference": "open"
},
"HibernationOptions": {
"Configured": false
},
"MetadataOptions": {
"State": "applied",
"HttpTokens": "required",
"HttpPutResponseHopLimit": 1,
"HttpEndpoint": "enabled",
"HttpProtocolIpv6": "disabled",
"InstanceMetadataTags": "disabled"
},
"EnclaveOptions": {
"Enabled": false
},
"PlatformDetails": "Windows",
"UsageOperation": "RunInstances:0002",
"UsageOperationUpdateTime": "2023-07-06T19:28:58+00:00",
"PrivateDnsNameOptions": {
"HostnameType": "ip-name",
"EnableResourceNameDnsARecord": false,
"EnableResourceNameDnsAAAARecord": false
},
"MaintenanceOptions": {
"AutoRecovery": "default"
},
"CurrentInstanceBootMode": "legacy-bios",
"c7n:MatchedFilters": [
"tag:AccountType",
"tag:Attributes",
"tag:EnvironmentType",
"tag:ImageBuilder"
]
},
{
... View more