Service Network Resource Association
Resource for managing an AWS VPC Lattice Service Network Resource Association.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.vpclattice.ServiceNetworkResourceAssociation("example", {
resourceConfigurationIdentifier: exampleAwsVpclatticeResourceConfiguration.id,
serviceNetworkIdentifier: exampleAwsVpclatticeServiceNetwork.id,
tags: {
Name: "Example",
},
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.vpclattice.ServiceNetworkResourceAssociation("example",
resource_configuration_identifier=example_aws_vpclattice_resource_configuration["id"],
service_network_identifier=example_aws_vpclattice_service_network["id"],
tags={
"Name": "Example",
})
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.VpcLattice.ServiceNetworkResourceAssociation("example", new()
{
ResourceConfigurationIdentifier = exampleAwsVpclatticeResourceConfiguration.Id,
ServiceNetworkIdentifier = exampleAwsVpclatticeServiceNetwork.Id,
Tags =
{
{ "Name", "Example" },
},
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/vpclattice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vpclattice.NewServiceNetworkResourceAssociation(ctx, "example", &vpclattice.ServiceNetworkResourceAssociationArgs{
ResourceConfigurationIdentifier: pulumi.Any(exampleAwsVpclatticeResourceConfiguration.Id),
ServiceNetworkIdentifier: pulumi.Any(exampleAwsVpclatticeServiceNetwork.Id),
Tags: pulumi.StringMap{
"Name": pulumi.String("Example"),
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.vpclattice.ServiceNetworkResourceAssociation;
import com.pulumi.aws.vpclattice.ServiceNetworkResourceAssociationArgs;
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 ServiceNetworkResourceAssociation("example", ServiceNetworkResourceAssociationArgs.builder()
.resourceConfigurationIdentifier(exampleAwsVpclatticeResourceConfiguration.id())
.serviceNetworkIdentifier(exampleAwsVpclatticeServiceNetwork.id())
.tags(Map.of("Name", "Example"))
.build());
}
}
Content copied to clipboard
resources:
example:
type: aws:vpclattice:ServiceNetworkResourceAssociation
properties:
resourceConfigurationIdentifier: ${exampleAwsVpclatticeResourceConfiguration.id}
serviceNetworkIdentifier: ${exampleAwsVpclatticeServiceNetwork.id}
tags:
Name: Example
Content copied to clipboard
Import
Using pulumi import
, import VPC Lattice Service Network Resource Association using the id
. For example:
$ pulumi import aws:vpclattice/serviceNetworkResourceAssociation:ServiceNetworkResourceAssociation example snra-1234567890abcef12
Content copied to clipboard
Properties
Link copied to clipboard
DNS entry of the association in the service network.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Identifier of Resource Configuration to associate to the Service Network.
Link copied to clipboard
Identifier of the Service Network to associate the Resource to. The following arguments are optional:
Link copied to clipboard