Service Network Vpc Association
Resource for managing an AWS VPC Lattice Service Network VPC Association.
Example Usage
Basic Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.vpclattice.ServiceNetworkVpcAssociation;
import com.pulumi.aws.vpclattice.ServiceNetworkVpcAssociationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ServiceNetworkVpcAssociation("example", ServiceNetworkVpcAssociationArgs.builder()
.vpcIdentifier(aws_vpc.example().id())
.serviceNetworkIdentifier(aws_vpclattice_service_network.example().id())
.securityGroupIds(aws_security_group.example().id())
.build());
}
}
Content copied to clipboard
Import
VPC Lattice Service Network VPC Association can be imported using the id
, e.g.,
$ pulumi import aws:vpclattice/serviceNetworkVpcAssociation:ServiceNetworkVpcAssociation example snsa-05e2474658a88f6ba
Content copied to clipboard
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The IDs of the security groups.
Link copied to clipboard
The ID or Amazon Resource Identifier (ARN) of the service network. You must use the ARN if the resources specified in the operation are in different accounts. The following arguments are optional:
Link copied to clipboard
The ID of the VPC.