Gateway Association Proposal
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
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(aws_dx_gateway.example().id())
.dxGatewayOwnerAccountId(aws_dx_gateway.example().owner_account_id())
.associatedGatewayId(aws_vpn_gateway.example().id())
.build());
}
}
Import
Direct Connect Gateway Association Proposals can be imported using either a proposal ID or proposal ID, Direct Connect Gateway ID and associated gateway ID separated by /
, e.g.,
$ pulumi import aws:directconnect/gatewayAssociationProposal:GatewayAssociationProposal example ac90e981-b718-4364-872d-65478c84fafe
or
$ 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.
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.
The ID of the AWS account that owns the VGW or transit gateway with which to associate the Direct Connect gateway.
The type of the associated gateway, transitGateway
or virtualPrivateGateway
.
Direct Connect Gateway identifier.
AWS Account identifier of the Direct Connect Gateway's owner.