Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CCAP-137: Add OpenTofu backend for staging #1

Merged
merged 3 commits into from
May 14, 2024

Conversation

jamesiarmes
Copy link
Member

@jamesiarmes jamesiarmes commented May 10, 2024

🔗 Jira ticket

CCAP-137

✍️ Description

Added a backend configuration for the staging environment.
Set up GitHub Actions for scanning and deployment.

Note: This does not complete CCAP-137, but I felt it would be easier to review this as a separate piece

📷 Design reference

🧪 Testing instructions

  • Make sure you have OpenTofu installed (brew install opentofu)
  • Clone the repo and checkout this pull request
  • Navigate to the "staging" config (cd tofu/config/staging)
  • Follow the steps in the README to initialize the configuration (no need to plan or apply at this time)
  • Run tofu plan and verify that there are no expected changes

✅ Completion tasks

  • Added relevant tests
  • Meets acceptance criteria

@jamesiarmes jamesiarmes force-pushed the ccap-137-microservice-nonprod branch from e8dd76c to 7b35c7e Compare May 10, 2024 20:04
@jamesiarmes jamesiarmes force-pushed the ccap-137-microservice-nonprod branch 2 times, most recently from 3d2b6f3 to 7996b02 Compare May 13, 2024 15:55
Copy link

github-actions bot commented May 13, 2024

Plan output

module.backend.data.aws_caller_identity.identity: Reading...
module.backend.data.aws_partition.current: Reading...
module.backend.data.aws_partition.current: Read complete after 0s [id=aws]
module.backend.aws_s3_bucket.tfstate: Refreshing state... [id=illinois-getchildcare-staging-tfstate]
module.backend.data.aws_caller_identity.identity: Read complete after 0s [id=891377151751]
module.backend.aws_s3_bucket_public_access_block.tfstate: Refreshing state... [id=illinois-getchildcare-staging-tfstate]
module.backend.aws_s3_bucket_policy.tfstate: Refreshing state... [id=illinois-getchildcare-staging-tfstate]
module.backend.aws_s3_bucket_logging.tfstate: Refreshing state... [id=illinois-getchildcare-staging-tfstate]
module.backend.aws_s3_bucket_versioning.tfstate: Refreshing state... [id=illinois-getchildcare-staging-tfstate]
module.backend.aws_kms_key.backend: Refreshing state... [id=e12d42f7-5c01-4df2-8f70-8647f8e51d7e]
module.backend.aws_kms_alias.backend: Refreshing state... [id=alias/illinois-getchildcare/staging/backend]
module.backend.aws_s3_bucket_server_side_encryption_configuration.tfstate: Refreshing state... [id=illinois-getchildcare-staging-tfstate]
module.backend.aws_dynamodb_table.tfstate_lock: Refreshing state... [id=tfstate]

No changes. Your infrastructure matches the configuration.

OpenTofu has compared your real infrastructure against your configuration and
found no differences, so no changes are needed.

@jamesiarmes jamesiarmes marked this pull request as ready for review May 13, 2024 15:59
@jamesiarmes jamesiarmes requested a review from enyia21 May 13, 2024 16:28
@jamesiarmes jamesiarmes requested a deployment to staging May 13, 2024 19:48 — with GitHub Actions Abandoned
Copy link

@enyia21 enyia21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have one quick correction to suggest. the -o flag doesn't work for me. -out does.

README.md Outdated Show resolved Hide resolved
@jamesiarmes jamesiarmes merged commit 4933907 into main May 14, 2024
5 checks passed
@jamesiarmes jamesiarmes deleted the ccap-137-microservice-nonprod branch May 14, 2024 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants