Skip to content

Commit 5aeb6d0

Browse files
committed
Update README and script to for provider upgrade
1 parent 6026960 commit 5aeb6d0

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/deploy-to-control-plane.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
id: init
8080
shell: bash
8181
working-directory: ./terraform
82-
run: terraform init
82+
run: terraform init -upgrade
8383

8484
# Validate Terraform configuration
8585
- name: Terraform Validate

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,14 @@ After the Github Action has successfully deployed the application, it can be tes
111111
3. Select the workload name that corresponds to the branch that was deployed.
112112
4. Click the `Open` button. The app will open in a new tab. The container's environment variables and start up arguments will be displayed.
113113

114+
## Upgrading Provider Version
115+
116+
1. Update the `TF_PROVIDER_VERSION` repository secret with the desired provider version.
117+
2. Update the version property inside the HCL file that contains the `required_providers` declaration block for the `cpln` provider.
118+
3. The example workflow runs the command `terraform init -upgrade` which will upgrade the Terraform dependencies (state file, etc.).
119+
120+
Note: If necessary, the provider version can be downgraded.
121+
114122

115123
## Helper Links
116124

0 commit comments

Comments
 (0)