Add OpenTofu setup and configuration for AWS infrastructure

- Create action for setting up OpenTofu environment
- Update Terraform workflow to use OpenTofu for infrastructure management
- Modify backend configuration for S3 with new bucket and region
- Add S3 bucket resources with lifecycle configuration
- Update local variables and remove deprecated files
- Include required Python packages for OpenTofu
This commit is contained in:
2025-04-25 16:37:01 +02:00
parent 41ee9e0618
commit e9c492d149
12 changed files with 85 additions and 17 deletions
+5 -2
View File
@@ -1,5 +1,8 @@
locals {
region = "us-east-1"
region = "eu-west-1"
billing_alarm_limit = 20
billing_alarm_emails = "c.alexandre.pires@gmail.com"
billing_alarm_emails = "c.alexandre.pires@alexpires.me"
account_id = data.aws_caller_identity.current.account_id
}
data "aws_caller_identity" "current" {}