Skip to content

Conversation

@chris3ware
Copy link
Member

@chris3ware chris3ware commented Nov 1, 2024

Add a job to find terraform files changes, which outputs the directory names used to construct the matrix strategy for multi environment deployment.

Use a merge queue for apply.

@github-actions
Copy link

github-actions bot commented Nov 1, 2024

💰 Infracost report

Monthly estimate increased by $9 📈

Changed project Baseline cost Usage cost* Total change New monthly cost
3ware/gitops-2024/terraform/production +$9 +$0 +$9 $9

*Usage costs were estimated using Infracost Cloud settings, see docs for other options.

Estimate details
Key: * usage cost, ~ changed, + added, - removed

──────────────────────────────────
Project: production
Module path: production

+ aws_instance.grafana_server
  +$9

    + Instance usage (Linux/UNIX, on-demand, t2.micro)
      +$8

    + root_block_device
    
        + Storage (general purpose SSD, gp2)
          +$0.80

Monthly cost change for 3ware/gitops-2024/terraform/production (Module path: production)
Amount:  +$9 ($0.00 → $9)

──────────────────────────────────
Key: * usage cost, ~ changed, + added, - removed
1 project has no cost estimate change.
Run the following command to see its breakdown: infracost breakdown --path=/path/to/code

──────────────────────────────────
*Usage costs were estimated using Infracost Cloud settings, see docs for other options.

20 cloud resources were detected:
∙ 2 were estimated
∙ 18 were free

Infracost estimate: Monthly estimate increased by $9 ↑
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Changed project                                    ┃ Baseline cost ┃ Usage cost* ┃ Total change ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━╋━━━━━━━━━━━━━━┫
┃ 3ware/gitops-2024/terraform/production             ┃           +$9 ┃         +$0 ┃          +$9 ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛

✅ Policies passed

This comment will be updated when code changes.

To ensure the .sops-file directory in not searched.
@3ware 3ware deleted a comment from github-actions bot Nov 1, 2024
@3ware 3ware deleted a comment from github-actions bot Nov 1, 2024
@chris3ware chris3ware marked this pull request as ready for review November 1, 2024 15:42
@chris3ware chris3ware requested a review from a team as a code owner November 1, 2024 15:42
james3ware
james3ware previously approved these changes Nov 1, 2024
@james3ware james3ware added this pull request to the merge queue Nov 1, 2024
@chris3ware chris3ware removed this pull request from the merge queue due to a manual request Nov 1, 2024
james3ware
james3ware previously approved these changes Nov 4, 2024
@james3ware james3ware added this pull request to the merge queue Nov 4, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 4, 2024
Used to address the case where runs have failed because the terraform
version is different on different runners.
@github-actions
Copy link

github-actions bot commented Nov 4, 2024

terraform/development

✅ Terraform Format and Style success

✅ Terraform Validation success

✅ TFLint success

@github-actions
Copy link

github-actions bot commented Nov 4, 2024

terraform/production

✅ Terraform Format and Style success

✅ Terraform Validation success

✅ TFLint success

@james3ware james3ware added this pull request to the merge queue Nov 4, 2024
@github-actions
Copy link

github-actions bot commented Nov 4, 2024

terraform apply -chdir='terraform/development'
Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
By @james3ware at 2024-11-04T14:43:29Z (view log).
Apply complete! Resources: 0 added, 0 changed, 0 destroyed.

Outputs:

grafana_ip = "http://44.222.254.77:3000"

@github-actions
Copy link

github-actions bot commented Nov 4, 2024

terraform apply -chdir='terraform/production'
Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
By @james3ware at 2024-11-04T14:43:29Z (view log).
Apply complete! Resources: 0 added, 0 changed, 0 destroyed.

Outputs:

grafana_ip = "http://34.201.150.199:3000"

Merged via the queue into main with commit c1ee055 Nov 4, 2024
@james3ware james3ware deleted the ci-multi-env-with-matrix branch November 4, 2024 14:46
@3ware-release
Copy link
Contributor

3ware-release bot commented Apr 7, 2025

This PR is included in version 2.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants