From 1e98a685dede37ec431296ab5f57ee9a30e6e633 Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Mon, 23 Dec 2024 20:49:46 +0900 Subject: [PATCH] chore: clean example --- example/bar/foo.tf | 7 ------- example/bar/foo.tf.after | 7 ------- example/bar/main.tf | 3 --- example/bar/main.tf.after | 3 --- example/foo/aws_instance.tf | 6 ------ example/foo/aws_instance.tf.after | 6 ------ example/foo/aws_s3_bucket.tf | 7 ------- example/foo/aws_s3_bucket.tf.after | 7 ------- example/foo/module_foo.tf | 3 --- example/foo/module_foo.tf.after | 3 --- example/foo/nest/main.tf | 1 - example/foo/nest/main.tf.after | 1 - example/main.tf.after | 20 -------------------- example/{foo => }/module/main.tf | 0 example/moved.tf | 1 + example/regexp/main.tf | 11 ----------- example/tfmv.jsonnet | 1 - 17 files changed, 1 insertion(+), 86 deletions(-) delete mode 100644 example/bar/foo.tf delete mode 100644 example/bar/foo.tf.after delete mode 100644 example/bar/main.tf delete mode 100644 example/bar/main.tf.after delete mode 100644 example/foo/aws_instance.tf delete mode 100644 example/foo/aws_instance.tf.after delete mode 100644 example/foo/aws_s3_bucket.tf delete mode 100644 example/foo/aws_s3_bucket.tf.after delete mode 100644 example/foo/module_foo.tf delete mode 100644 example/foo/module_foo.tf.after delete mode 100644 example/foo/nest/main.tf delete mode 100644 example/foo/nest/main.tf.after delete mode 100644 example/main.tf.after rename example/{foo => }/module/main.tf (100%) create mode 100644 example/moved.tf delete mode 100644 example/regexp/main.tf delete mode 100644 example/tfmv.jsonnet diff --git a/example/bar/foo.tf b/example/bar/foo.tf deleted file mode 100644 index 86bd139..0000000 --- a/example/bar/foo.tf +++ /dev/null @@ -1,7 +0,0 @@ -resource "github_branch" "example" { - repository = github_repository.example-1.name - branch = "example" - depends_on = [ - github_repository.example-1 - ] -} diff --git a/example/bar/foo.tf.after b/example/bar/foo.tf.after deleted file mode 100644 index 9fbd25b..0000000 --- a/example/bar/foo.tf.after +++ /dev/null @@ -1,7 +0,0 @@ -resource "github_branch" "example" { - repository = github_repository.example_1.name - branch = "example" - depends_on = [ - github_repository.example_1 - ] -} diff --git a/example/bar/main.tf b/example/bar/main.tf deleted file mode 100644 index 4235835..0000000 --- a/example/bar/main.tf +++ /dev/null @@ -1,3 +0,0 @@ -resource "github_repository" "example-1" { - name = "example-1" -} diff --git a/example/bar/main.tf.after b/example/bar/main.tf.after deleted file mode 100644 index 331b1af..0000000 --- a/example/bar/main.tf.after +++ /dev/null @@ -1,3 +0,0 @@ -resource "github_repository" "example_1" { - name = "example-1" -} diff --git a/example/foo/aws_instance.tf b/example/foo/aws_instance.tf deleted file mode 100644 index cc3c921..0000000 --- a/example/foo/aws_instance.tf +++ /dev/null @@ -1,6 +0,0 @@ -resource "aws_instance" "this" { - ami = "ami-0dcc1e21636832c5d" - instance_type = "m5.large" - host_resource_group_arn = "arn:aws:resource-groups:us-west-2:123456789012:group/win-testhost" - tenancy = "host" -} diff --git a/example/foo/aws_instance.tf.after b/example/foo/aws_instance.tf.after deleted file mode 100644 index cc3c921..0000000 --- a/example/foo/aws_instance.tf.after +++ /dev/null @@ -1,6 +0,0 @@ -resource "aws_instance" "this" { - ami = "ami-0dcc1e21636832c5d" - instance_type = "m5.large" - host_resource_group_arn = "arn:aws:resource-groups:us-west-2:123456789012:group/win-testhost" - tenancy = "host" -} diff --git a/example/foo/aws_s3_bucket.tf b/example/foo/aws_s3_bucket.tf deleted file mode 100644 index b4b5242..0000000 --- a/example/foo/aws_s3_bucket.tf +++ /dev/null @@ -1,7 +0,0 @@ -resource "aws_s3_bucket" "example-1" { - bucket = "test-1" -} - -resource "aws_s3_bucket" "example-2" { - bucket = "test-2" -} diff --git a/example/foo/aws_s3_bucket.tf.after b/example/foo/aws_s3_bucket.tf.after deleted file mode 100644 index 1208c7c..0000000 --- a/example/foo/aws_s3_bucket.tf.after +++ /dev/null @@ -1,7 +0,0 @@ -resource "aws_s3_bucket" "example_1" { - bucket = "test-1" -} - -resource "aws_s3_bucket" "example_2" { - bucket = "test-2" -} diff --git a/example/foo/module_foo.tf b/example/foo/module_foo.tf deleted file mode 100644 index 0c5727b..0000000 --- a/example/foo/module_foo.tf +++ /dev/null @@ -1,3 +0,0 @@ -module "foo_production" { - source = "./module" -} diff --git a/example/foo/module_foo.tf.after b/example/foo/module_foo.tf.after deleted file mode 100644 index 66b2f52..0000000 --- a/example/foo/module_foo.tf.after +++ /dev/null @@ -1,3 +0,0 @@ -module "foo_prod" { - source = "./module" -} diff --git a/example/foo/nest/main.tf b/example/foo/nest/main.tf deleted file mode 100644 index 30053eb..0000000 --- a/example/foo/nest/main.tf +++ /dev/null @@ -1 +0,0 @@ -resource "null_resource" "foo-prod" {} diff --git a/example/foo/nest/main.tf.after b/example/foo/nest/main.tf.after deleted file mode 100644 index a8c59ae..0000000 --- a/example/foo/nest/main.tf.after +++ /dev/null @@ -1 +0,0 @@ -resource "null_resource" "foo_prod" {} diff --git a/example/main.tf.after b/example/main.tf.after deleted file mode 100644 index 9110880..0000000 --- a/example/main.tf.after +++ /dev/null @@ -1,20 +0,0 @@ -resource "github_repository" "example_1" { - name = "example-1" -} - -data "github_branch" "example_2" { - repository = github_repository.example_1.name - branch = "example" - depends_on = [ - github_repository.example_1, - module.example_3 - ] -} - -module "example_3" { - source = "./foo/module" -} - -output "branch_sha" { - value = data.github_branch.example_2.sha -} diff --git a/example/foo/module/main.tf b/example/module/main.tf similarity index 100% rename from example/foo/module/main.tf rename to example/module/main.tf diff --git a/example/moved.tf b/example/moved.tf new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/example/moved.tf @@ -0,0 +1 @@ + diff --git a/example/regexp/main.tf b/example/regexp/main.tf deleted file mode 100644 index 48ce91d..0000000 --- a/example/regexp/main.tf +++ /dev/null @@ -1,11 +0,0 @@ -resource "github_repository" "example-1" { - name = "example-1" -} - -resource "github_branch" "example" { - repository = github_repository.example-1.name - branch = "example" - depends_on = [ - github_repository.example-1 - ] -} diff --git a/example/tfmv.jsonnet b/example/tfmv.jsonnet deleted file mode 100644 index 1c325fe..0000000 --- a/example/tfmv.jsonnet +++ /dev/null @@ -1 +0,0 @@ -std.native("strings.Replace")(std.extVar('input').name, "-", "_", -1)[0]