From 1efe032f112dea73f72ca13f7051ce482322e57c Mon Sep 17 00:00:00 2001 From: Oleg Senin Date: Thu, 11 Aug 2022 17:04:11 +0300 Subject: [PATCH] Add associate_public_ip_address, vpc_security_group_ids, ipv6_addresses, ipv6_address_count to aws_instance ignored fields for proper work with attached network interface. Signed-off-by: Oleg Senin --- apis/ec2/v1alpha2/zz_generated_terraformed.go | 4 ++++ config/ec2/config.go | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/apis/ec2/v1alpha2/zz_generated_terraformed.go b/apis/ec2/v1alpha2/zz_generated_terraformed.go index 081b6ff98..b7564db9b 100755 --- a/apis/ec2/v1alpha2/zz_generated_terraformed.go +++ b/apis/ec2/v1alpha2/zz_generated_terraformed.go @@ -755,10 +755,14 @@ func (tr *Instance) LateInitialize(attrs []byte) (bool, error) { return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") } opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + opts = append(opts, resource.WithNameFilter("AssociatePublicIPAddress")) + opts = append(opts, resource.WithNameFilter("IPv6AddressCount")) + opts = append(opts, resource.WithNameFilter("IPv6Addresses")) opts = append(opts, resource.WithNameFilter("NetworkInterface")) opts = append(opts, resource.WithNameFilter("PrivateIP")) opts = append(opts, resource.WithNameFilter("SourceDestCheck")) opts = append(opts, resource.WithNameFilter("SubnetID")) + opts = append(opts, resource.WithNameFilter("VPCSecurityGroupIds")) li := resource.NewGenericLateInitializer(opts...) return li.LateInitialize(&tr.Spec.ForProvider, params) diff --git a/config/ec2/config.go b/config/ec2/config.go index db108f82c..94d46fc4d 100644 --- a/config/ec2/config.go +++ b/config/ec2/config.go @@ -58,6 +58,10 @@ func Configure(p *config.Provider) { "network_interface", "private_ip", "source_dest_check", + "associate_public_ip_address", + "vpc_security_group_ids", + "ipv6_addresses", + "ipv6_address_count", }, } })