liquibase / liquibase-docs

7 stars 15 forks source link

DAT-16244 docs terraform migration without using spacectl cli #208

Closed jandroav closed 6 months ago

jandroav commented 6 months ago

I made the following changes in our Spacelift configuration repo to allow us to import the current states for both liquibase-docs-staging and liquibase-docs-prod: https://github.com/liquibase/spacelift/pull/6/files

You can checkout this PR branch and cd into scripts/redirect_creation to test it by just running the same terraform commands shown at liquibase-docs/.github/workflows/send-docs-redirects-to-staging.yml

The local test I did (be sure to be logged to our AWS liquibase-admin account):

terraform login spacelift.io
terraform init -backend-config=staging.remote.tfbackend
terraform plan 

image

github-actions[bot] commented 6 months ago

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Validation 🤖success

Validation Output ``` ```

Terraform Plan 📖success

Show Plan ``` No changes. Your infrastructure matches the configuration. Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are needed. ```

Pusher: @jandroav, Action: pull_request, Working Directory: /home/runner/work/liquibase-docs/liquibase-docs, Workflow: Publish Redirects to Staging for Docs

github-actions[bot] commented 6 months ago

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Validation 🤖success

Validation Output ``` ```

Terraform Plan 📖success

Show Plan ``` No changes. Your infrastructure matches the configuration. Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are needed. ```

Pusher: @jandroav, Action: pull_request, Working Directory: /home/runner/work/liquibase-docs/liquibase-docs, Workflow: Publish Redirects to Staging for Docs

github-actions[bot] commented 6 months ago

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Validation 🤖success

Validation Output ``` ```

Terraform Plan 📖success

Show Plan ``` No changes. Your infrastructure matches the configuration. Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are needed. ```

Pusher: @jandroav, Action: pull_request, Working Directory: /home/runner/work/liquibase-docs/liquibase-docs, Workflow: Publish Redirects to Staging for Docs

github-actions[bot] commented 6 months ago

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Validation 🤖success

Validation Output ``` ```

Terraform Plan 📖success

Show Plan ``` No changes. Your infrastructure matches the configuration. Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are needed. ```

Pusher: @jandroav, Action: pull_request, Working Directory: /home/runner/work/liquibase-docs/liquibase-docs, Workflow: Publish Redirects to Staging for Docs

github-actions[bot] commented 6 months ago

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Validation 🤖success

Validation Output ``` ```

Terraform Plan 📖success

Show Plan ``` No changes. Your infrastructure matches the configuration. Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are needed. ```

Pusher: @jandroav, Action: pull_request, Working Directory: /home/runner/work/liquibase-docs/liquibase-docs, Workflow: Publish Redirects to Staging for Docs