I am trying to create a s3 vpc endpoint but from e...
# general
b
I am trying to create a s3 vpc endpoint but from earlier this year AWS added a new attribute
PrivateDnsOnlyForInboundResolverEndpoint
which defaults to true and must have a gateway endpoint already existing (or set false). Is there a way to add an unsupported attribute to a reqeust, or is there a raw AWS resource type I can use? Terraform have implemented this here, https://github.com/hashicorp/terraform-provider-aws/issues/30853
Copy code
new aws.ec2.VpcEndpoint('myendpoint', {
    vpcId: vpc.vpcId,
    serviceName: `com.amazonaws.ap-southeast-2.s3`,
    vpcEndpointType: "Interface",
    securityGroupIds: [epsg.id],
    subnetIds: vpc.privateSubnetIds,
    privateDnsEnabled: true,
  })
d
It looks like you'll need to wait for the v6 release: https://github.com/pulumi/pulumi-aws/issues/2539
b
thanks Anthony.
This is working with the v6 release now 🎉
Copy code
new aws.ec2.VpcEndpoint('myendpoint', {
    vpcId: vpc.vpcId,
    serviceName: `com.amazonaws.ap-southeast-2.s3`,
    vpcEndpointType: "Interface",
    securityGroupIds: [epsg.id],
    subnetIds: vpc.privateSubnetIds,
    privateDnsEnabled: true,
    dnsOptions: {
        dnsRecordIpType: 'ipv4',
        privateDnsOnlyForInboundResolverEndpoint: false
    },
  })