https://pulumi.com logo
#general
Title
# general
b

busy-monitor-69572

08/08/2023, 3:25 AM
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

dry-keyboard-94795

08/08/2023, 6:39 AM
It looks like you'll need to wait for the v6 release: https://github.com/pulumi/pulumi-aws/issues/2539
b

busy-monitor-69572

08/08/2023, 10:06 PM
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
    },
  })
2 Views