pulumi_wasm_providers_aws_mini::ec2

Module vpc_endpoint_policy

source
Expand description

Provides a VPC Endpoint Policy resource.

§Example Usage

resources:
  exampleVpc:
    type: aws:ec2:Vpc
    name: example
    properties:
      cidrBlock: 10.0.0.0/16
  exampleVpcEndpoint:
    type: aws:ec2:VpcEndpoint
    name: example
    properties:
      serviceName: ${example.serviceName}
      vpcId: ${exampleVpc.id}
  exampleVpcEndpointPolicy:
    type: aws:ec2:VpcEndpointPolicy
    name: example
    properties:
      vpcEndpointId: ${exampleVpcEndpoint.id}
      policy:
        fn::toJSON:
          Version: 2012-10-17
          Statement:
            - Sid: AllowAll
              Effect: Allow
              Principal:
                AWS: '*'
              Action:
                - dynamodb:*
              Resource: '*'
variables:
  example:
    fn::invoke:
      function: aws:ec2:getVpcEndpointService
      arguments:
        service: dynamodb

§Import

Using pulumi import, import VPC Endpoint Policies using the id. For example:

$ pulumi import aws:ec2/vpcEndpointPolicy:VpcEndpointPolicy example vpce-3ecf2a57

Structs§

Functions§

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