crossplane-contrib / provider-jet-aws

AWS Provider for Crossplane that is built with Terrajet.
https://crossplane.io
Apache License 2.0
37 stars 30 forks source link

Conflicting configuration arguments: "ipv6_addresses": conflicts with ipv6_address_count #226

Open RealFatCat opened 2 years ago

RealFatCat commented 2 years ago

What happened?

Trying to create network interface with ipv6. After creation the SYNCED status goes to False.

The message I've got:

    message: |-
      observe failed: cannot run refresh: refresh failed: Conflicting configuration arguments: "ipv6_addresses": conflicts with ipv6_address_count: File name: main.tf.json
      Conflicting configuration arguments: "ipv6_address_count": conflicts with ipv6_addresses: File name: main.tf.json

How can we reproduce it?

---
apiVersion: ec2.aws.jet.crossplane.io/v1alpha2
kind: VPC
metadata:
  name: vpc
  labels:
    crossplane.io/app: exp
spec:
  forProvider:
    assignGeneratedIpv6CidrBlock: true
    cidrBlock: 10.3.0.0/16
    enableDnsSupport: true
    enableDnsHostnames: true
    instanceTenancy: default
    tags:
      "Name": vpc
    region: us-east-2
  deletionPolicy: Delete
  providerConfigRef:
    name: default
---
apiVersion: ec2.aws.jet.crossplane.io/v1alpha2
kind: Subnet
metadata:
  name: subnet-a
  labels:
    crossplane.io/app: exp
spec:
  forProvider:
    region: us-east-2
    availabilityZone: us-east-2a
    cidrBlock: 10.3.1.0/24
    ipv6CidrBlock: <CHANGE_ME_TO_IPV6_CIDR_BLOCK_OF_VPC>
    vpcIdRef:
      name: vpc
    mapPublicIpOnLaunch: true
    assignIpv6AddressOnCreation: true
    tags:
      Name: subnet-a
  deletionPolicy: Delete
  providerConfigRef:
    name: default
---
apiVersion: ec2.aws.jet.crossplane.io/v1alpha2
kind: NetworkInterface
metadata:
  name: ni-a
  labels:
    crossplane.io/app: exp
spec:
  forProvider:
    region: us-east-2
    subnetIdRef:
      name: subnet-a
    tags:
      Name: ni-a
  deletionPolicy: Delete
  providerConfigRef:
    name: default

What environment did it happen in?

Provider Image installed with kubectl crossplane install ...: crossplane/provider-jet-aws-controller:v0.5.0