Skip to content

Commit

Permalink
refactor: changes in README.md and .tfvars files
Browse files Browse the repository at this point in the history
  • Loading branch information
srushti-patl committed Sep 22, 2023
1 parent d7f1a74 commit 64721a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ At minimum, you must set below variables in `terraform.tfvars` file:

## Initialize
- First step is to initialize the terraform directory/resource we are going to work on.
In the given example, the folder to perform CRUD operations on a fcr2serviceprofile connection can be found at examples/fcr2serviceprofile/.
In the given example, the folder to perform CRUD operations on a fcr2serviceprofile connection can be found at examples/fabric/v4/cloudRouterConnectivity/cloudRouter2serviceprofile.

- Change directory into - `CD cloudRouter2serviceprofile`
- Initialize Terraform plugins - `terraform init`

## Fabric Cloud Router to ServiceProfile connection : Create, Read, Update and Delete(CRUD) operations
Note: `–auto-approve` command does not prompt the user for validating the applying config. Remove it to get a prompt to confirm the operation.

| Operation | Command | Description |
|:----------|:---------------------------------:|-----------------------------------------------------------------------:|
| CREATE | `terraform apply –auto-approve` | Creates a fcr2port connection resource |
| READ | `terraform show` | Reads/Shows the current state of the fcr2port connection resource |
| UPDATE | `terraform apply -refresh` | Updates the fcr2port with values provided in the terraform.tfvars file |
| DELETE | `terraform destroy –auto-approve` | Deletes the created fcr2port connection resource |
| Operation | Command | Description |
|:----------|:---------------------------------:|---------------------------------------------------------------------------------:|
| CREATE | `terraform apply –auto-approve` | Creates a fcr2serviceprofile connection resource |
| READ | `terraform show` | Reads/Shows the current state of the fcr2serviceprofile connection resource |
| UPDATE | `terraform apply -refresh` | Updates the fcr2serviceprofile with values provided in the terraform.tfvars file |
| DELETE | `terraform destroy –auto-approve` | Deletes the created fcr2serviceprofile connection resource |
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ connection_type = "IP_VC"
notifications_type = "ALL"
notifications_emails = ["[email protected]"]
bandwidth = 50
redundancy = "SECONDARY" #"PRIMARY" #||
redundancy = "PRIMARY" || "SECONDARY"
redundancy_group_uuid = "53e04795-e6da-4756-9462-8bdc9b1f96d3" #OPTIONAL
purchase_order_number = "1-323292"
aside_ap_type = "CLOUD_ROUTER"
Expand Down

0 comments on commit 64721a4

Please sign in to comment.