pulumi_wasm_providers_aws_mini::ec2

Module vpc_endpoint_connection_notification

source
Expand description

Provides a VPC Endpoint connection notification resource. Connection notifications notify subscribers of VPC Endpoint events.

§Example Usage

resources:
  topicTopic:
    type: aws:sns:Topic
    name: topic
    properties:
      name: vpce-notification-topic
      policy: ${topic.json}
  foo:
    type: aws:ec2:VpcEndpointService
    properties:
      acceptanceRequired: false
      networkLoadBalancerArns:
        - ${test.arn}
  fooVpcEndpointConnectionNotification:
    type: aws:ec2:VpcEndpointConnectionNotification
    name: foo
    properties:
      vpcEndpointServiceId: ${foo.id}
      connectionNotificationArn: ${topicTopic.arn}
      connectionEvents:
        - Accept
        - Reject
variables:
  topic:
    fn::invoke:
      function: aws:iam:getPolicyDocument
      arguments:
        statements:
          - effect: Allow
            principals:
              - type: Service
                identifiers:
                  - vpce.amazonaws.com
            actions:
              - SNS:Publish
            resources:
              - arn:aws:sns:*:*:vpce-notification-topic

§Import

Using pulumi import, import VPC Endpoint connection notifications using the VPC endpoint connection notification id. For example:

$ pulumi import aws:ec2/vpcEndpointConnectionNotification:VpcEndpointConnectionNotification foo vpce-nfn-09e6ed3b4efba2263

Structs§

Functions§

  • Registers a new resource with the given unique name and arguments