Step 1 |
Gather the necessary information from the Amazon Web Services site that you could use for your Cisco Cloud APIC endpoint selector.
See Configuring Instances in AWS for those instructions.
Note
|
These steps assume that you are configuring the instance in AWS first, then adding an endpoint selector for Cisco Cloud APIC afterward; however, as described in Configuring Instances in AWS, you can also add an endpoint selector in Cisco Cloud APIC first, then perform this AWS instance configuration step afterward, at the end of these endpoint selector procedures.
|
|
Step 2 |
Log into the ACI Multi-Site Orchestrator, if you aren't already logged in.
|
Step 3 |
In the left pane, click Schemas, then select the schema that you created earlier.
|
Step 4 |
Determine how you want to create the endpoint selector.
-
If you want to create an endpoint selector that could be applied to any additional cloud site in the future, follow these
procedures:
-
In the left pane, leave the template selected.
Do not select a specific site for these procedures.
-
In the middle pane, select the EPG that you created for the cloud site.
-
In the right pane, in the CLOUD PROPERITES area, click + next to SELECTORS to configure the endpoint selector.
-
In the Add New End Point Selector dialog, enter a name in the END POINT SELECTOR NAME field, based on the classification that you use for this endpoint selector.
-
Click + Expression, then select the type of endpoint selector.
For an endpoint selector created this way, the only option available under the Key field is EPG.
-
Go to Step 5.
-
If you want to create an endpoint selector specifically for this cloud site, follow these procedures:
-
In the left pane, select the cloud site.
-
In the middle pane, select the EPG that you created for the cloud site.
-
In the right pane, in the SITE LOCAL PROPERITES area, under the SELECTORS area, click + next to SELECTOR to configure the endpoint selector.
-
In the Add New End Point Selector dialog, enter a name in the END POINT SELECTOR NAME field, based on the classification that you use for this endpoint selector.
For example, for an endpoint selector with the IP Subnet classification, you might use a name such as IP-Subnet-EPSelector.
-
Click + Expression, then select the key that you want to use for the endpoint selector.
-
IP Address: Used to select by the IP address or subnet.
-
Region: Used to select by the AWS region of the endpoint.
-
Zone: Used to select by the AWS availability zone of the endpoint.
-
If you want to create a custom tag for the endpoint selector, start typing in the Type to search or create field to enter the custom tag or label, then click Create on the new field to create a new custom tab or label.
Using the example earlier in these procedures when you were adding a tag in AWS, you might create the custom tag Location in this field, to match the Location tag that you added in AWS earlier.
|
Step 5 |
In the Operator field, choose the operator that you want to use for the endpoint selector.
Note
|
In releases prior to 4.2(1), options Key Exist and Key Not Exist were used instead of Has Key and Does Not Have Key. Only the names of the options differ; the functionality is the same between both sets of options.
|
The options are:
-
Equals: Used when you have a single value in the Value field.
-
Not Equals: Used when you have a single value in the Value field.
-
In: Used when you have multiple comma-separated values in the Value field.
-
Not In: Used when you have multiple comma-separated values in the Value field.
-
Has Key: Used if the expression contains only a key.
-
Does Not Have Key: Used if the expression contains only a key.
|
Step 6 |
In the Value field, choose which value that you want to use for the endpoint selector, based on the choices that you made for the two
previous fields. You can have multiple comma-separated entries in the Value field, where a logical OR exists between the entries in this field.
Note
|
The Value field is not displayed if Has Key or Does Not Have Key is selected for the Operator field.
|
For example, if you want to have a specific Amazon Web Services availability zone for the endpoint selector, such as us-west-1a, you might make the following selections in this screen:
-
Key: Zone
-
Operator: Equals
-
Value: us-west-1a
As another example, assume that you used the following values in these fields:
The EPG rules will be applied to all endpoints with an IP address in this situation.
As a final example, assume that you used the following values in these fields:
In this situation, the EPG rules will be applied to all endpoints with the AWS tag key Location, regardless of the location
value.
|
Step 7 |
Click the checkmark when you have finished creating this endpoint selector expression.
|
Step 8 |
Determine if you want to create additional endpoint selector expressions.
If you create more than one expression under a single endpoint selector, a logical AND exists between those expressions. For
example, assume you created two sets of expressions under a single endpoint selector:
-
Endpoint selector 1, expression 1:
-
Key: Zone
-
Operator: Equals
-
Value: us-west-1a
-
Endpoint selector 1, expression 2:
-
Key: IP
-
Operator: Equals
-
Value: 192.0.2.1/24
In this case, if both of these expressions are true (if the availability zone is us-west-1a AND if the IP address belongs to subnet 192.0.2.1/24),
then that endpoint will be assigned to the Cloud EPG.
Click the checkmark after every additional expression that you want to create under this endpoint selector.
|
Step 9 |
When you have finished creating the expressions for this endpoint selector, click SAVE in the lower right corner of the Add New End Point Selector.
If you create more than one endpoint selector under an EPG, a logical OR exists between those endpoint selectors. For example,
assume you had created endpoint selector 1 as described in the previous step, and then you created a second endpoint selector
as described below:
In this case:
-
If the availability zone is us-west-1a AND the IP address belongs to the 192.0.2.1/24 subnet (endpoint selector 1 expressions)
OR
-
If the region is either us-east-1 or us-east-2 (endpoint selector 2 expression)
Then that end point is assigned to the Cloud EPG.
|
Step 10 |
When you have finished creating the endpoint selectors, click SAVE in the upper right corner.
|
Step 11 |
Click on the DEPLOY TO SITES button at the top right corner of the screen to deploy the schema to the sites.
You should see a message saying Successfully Deployed at this point.
|