terragrunt - 删除从 Terragrunt remote_state 制作的资源?
问题描述
除了手动之外,还有什么方法可以删除 Terragrunt 制作的资源remote_state
?
背景
当您第一次配置remote_state
然后运行terragrunt init
一个模块时,它会询问您是否要创建资源。当然,你喜欢“y”。
例如 terragrunt.hcl:
remote_state {
backend = "s3"
generate = {
path = "backend.tf"
if_exists = "overwrite_terragrunt"
}
config = {
bucket = "test-${get_aws_account_id()}-iac-terraform"
key = "${path_relative_to_include()}/terraform.tfstate"
region = "us-east-2"
encrypt = true
dynamodb_table = "test-${get_aws_account_id()}-iac-terraform-lock-table"
}
}
期望
如果它将其制作的资源的状态文件上传到它制作的存储桶中,那就太好了。如果它发出命令删除这些资源,那就更好了。
解决方案
推荐阅读
- python-3.x - Pandas Plot Bar 固定范围缺失值
- android - 如何从 Android 访问 /data/user/0/ 文件夹?
- python - 如何在预测新数据的同时处理列的一种热编码转换?
- oracle - 错误 DG(用户发现和错误更新 sys.scheduler $_job set )
- image-processing - RGB 热图到 1D 热图
- javascript - Chrome 扩展程序 - 为什么我的脚本以 popup.html 为目标?
- jquery - 无法从 Postal Pincode API 获取数据
- django - 如何从for循环返回序列化程序中的所有值
- javascript - OrgChart.js 模块未定义
- reactjs - Am 图表 X 轴未与 api 数据一起绘制它在轴上显示时间错误的时间