aws_dc adapter¶
AWS uses a set of specific states for describing the hosted connection.
The states used by AWS:¶
ordering: The initial state of a hosted connection provisioned on an interconnect. The connection stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.
requested: The initial state of a standard connection. The connection stays in the requested state until the Letter of Authorization (LOA) is sent to the customer. (not applicable for cloudconnect)
pending: The connection has been approved and is being initialized.
available: The network link is up and the connection is ready for use.
down: The network link is down.
deleting: The connection is being deleted.
deleted: The connection has been deleted.
rejected: A hosted connection in the ordering state enters the rejected state if it is deleted by the customer.
unknown: The state of the connection is not available.
The behaviour of the handler in certain states:¶
state |
create |
read |
update |
delete |
---|---|---|---|---|
ordering |
InvalidConnectionState |
read connection state |
SkipResource |
delete connection |
pending |
InvalidConnectionState |
read connection state |
SkipResource |
delete connection |
available |
InvalidConnectionState |
read connection state |
SkipResource |
delete connection |
down |
InvalidConnectionState |
SkipResource |
InvalidConnectionState |
InvalidConnectionState |
deleting |
SkipResource |
read connection state |
SkipResource |
do nothing |
deleted |
create connection |
ResourcePurged |
SkipResource |
do nothing |
rejected |
InvalidConnectionState |
read connection state |
InvalidConnectionState |
delete connection |
unknown |
InvalidConnectionState |
SkipResource |
InvalidConnectionState |
InvalidConnectionState |
The collected facts for the HostedConnection:¶
“location”
“connectionId”
“connectionState”
“partnerName”
“awsDevice”
“awsDeviceV2”
“jumboFrameCapable”
“hasLogicalRedundancy”
HostedConnection attributes definition docs:¶
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/directconnect.html?highlight=directconnection#DirectConnect.Client.describe_hosted_connections
Maximum MTU for DirectConnect:¶
https://docs.aws.amazon.com/directconnect/latest/UserGuide/set-jumbo-frames-vif.html