Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Amazon VPC Lattice - Example: AWS RAM share

This example shows how you can use the VPC Lattice module to share service networks and services using AWS Resource Access Manager RAM. The example creates the following:

  • 1 VPC Lattice service network.
  • 3 VPC Lattice services - basic configuration (without listeners or targets).
  • 2 RAM shares. One is sharing the service network, and the other one is sharing 2 out of the 3 VPC Lattice services created.

NOTE: Given we automate these examples before merging new PRs, there's an AWS Systems Manager parameter data source configured to obtain an Account ID from a parameter configured in the AWS Account we use for the automated tests. Take that into account when doing your own tests, and please remember to keep this configuration when doing any PR to this repository.

In the outputs.tf file, you can see an example on how to obtain the information about the RAM share created (if applicable).

Requirements

Name Version
terraform >= 1.3.0
aws >= 4.66.0

Providers

Name Version
aws >= 4.66.0

Modules

Name Source Version
vpclattice_service_network_share ../.. n/a
vpclattice_services_share ../.. n/a

Resources

Name Type
aws_ram_resource_share.vpclattice_resource_share resource
aws_ssm_parameter.account_id data source

Inputs

Name Description Type Default Required
aws_region AWS Region to use. string "eu-west-1" no

Outputs

No outputs.