Gateway Association Proposal Args
Manages a Direct Connect Gateway Association Proposal, typically for enabling cross-account associations. For single account associations, see the aws.directconnect.GatewayAssociation
resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.directconnect.GatewayAssociationProposal("example", {
dxGatewayId: exampleAwsDxGateway.id,
dxGatewayOwnerAccountId: exampleAwsDxGateway.ownerAccountId,
associatedGatewayId: exampleAwsVpnGateway.id,
});
import pulumi
import pulumi_aws as aws
example = aws.directconnect.GatewayAssociationProposal("example",
dx_gateway_id=example_aws_dx_gateway["id"],
dx_gateway_owner_account_id=example_aws_dx_gateway["ownerAccountId"],
associated_gateway_id=example_aws_vpn_gateway["id"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.DirectConnect.GatewayAssociationProposal("example", new()
{
DxGatewayId = exampleAwsDxGateway.Id,
DxGatewayOwnerAccountId = exampleAwsDxGateway.OwnerAccountId,
AssociatedGatewayId = exampleAwsVpnGateway.Id,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/directconnect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := directconnect.NewGatewayAssociationProposal(ctx, "example", &directconnect.GatewayAssociationProposalArgs{
DxGatewayId: pulumi.Any(exampleAwsDxGateway.Id),
DxGatewayOwnerAccountId: pulumi.Any(exampleAwsDxGateway.OwnerAccountId),
AssociatedGatewayId: pulumi.Any(exampleAwsVpnGateway.Id),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.directconnect.GatewayAssociationProposal;
import com.pulumi.aws.directconnect.GatewayAssociationProposalArgs;
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 GatewayAssociationProposal("example", GatewayAssociationProposalArgs.builder()
.dxGatewayId(exampleAwsDxGateway.id())
.dxGatewayOwnerAccountId(exampleAwsDxGateway.ownerAccountId())
.associatedGatewayId(exampleAwsVpnGateway.id())
.build());
}
}
resources:
example:
type: aws:directconnect:GatewayAssociationProposal
properties:
dxGatewayId: ${exampleAwsDxGateway.id}
dxGatewayOwnerAccountId: ${exampleAwsDxGateway.ownerAccountId}
associatedGatewayId: ${exampleAwsVpnGateway.id}
Import
Using a proposal ID, Direct Connect Gateway ID and associated gateway ID separated by /
: With pulumi import
, import Direct Connect Gateway Association Proposals using either a proposal ID or proposal ID, Direct Connect Gateway ID and associated gateway ID separated by /
. For example: Using a proposal ID:
$ pulumi import aws:directconnect/gatewayAssociationProposal:GatewayAssociationProposal example ac90e981-b718-4364-872d-65478c84fafe
Using a proposal ID, Direct Connect Gateway ID and associated gateway ID separated by /
:
$ pulumi import aws:directconnect/gatewayAssociationProposal:GatewayAssociationProposal example ac90e981-b718-4364-872d-65478c84fafe/abcd1234-dcba-5678-be23-cdef9876ab45/vgw-12345678
The latter case is useful when a previous proposal has been accepted and deleted by AWS. The aws_dx_gateway_association_proposal
resource will then represent a pseudo-proposal for the same Direct Connect Gateway and associated gateway. If no previous proposal is available, use a tool like uuidgen
to generate a new random pseudo-proposal ID.
Constructors
Properties
VPC prefixes (CIDRs) to advertise to the Direct Connect gateway. Defaults to the CIDR block of the VPC associated with the Virtual Gateway. To enable drift detection, must be configured.
The ID of the VGW or transit gateway with which to associate the Direct Connect gateway.
Direct Connect Gateway identifier.
AWS Account identifier of the Direct Connect Gateway's owner.