Skip to content

Commit b69c908

Browse files
committed
Edit diff-add syntax in branch sandboxing blog
1 parent fc03e85 commit b69c908

1 file changed

Lines changed: 31 additions & 10 deletions

File tree

  • adminforth/documentation/blog/2026-06-01-branch-sandboxing-k3s

adminforth/documentation/blog/2026-06-01-branch-sandboxing-k3s/index.md

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,16 @@ terraform {
9494
}
9595
//diff-add
9696
backend "s3" {
97+
//diff-add
9798
bucket = "terraform-sandbox-blogpost"
99+
//diff-add
98100
key = "terraform.tfstate"
101+
//diff-add
99102
region = "us-west-2"
103+
//diff-add
100104
use_lockfile = true
105+
//diff-add
101106
}
102-
//diff-add
103107
}
104108
```
105109

@@ -108,41 +112,58 @@ Also, we need to output the values we need for the sandbox deployment. In the sa
108112
```hcl
109113
//diff-add
110114
output "ecr_repository_url" {
115+
//diff-add
111116
value = aws_ecr_repository.app_repo.repository_url
117+
//diff-add
112118
}
113-
119+
//diff-add
114120
output "account_id" {
121+
//diff-add
115122
value = data.aws_caller_identity.current.account_id
123+
//diff-add
116124
}
117-
125+
//diff-add
118126
output "aws_region" {
127+
//diff-add
119128
value = local.aws_region
129+
//diff-add
120130
}
121-
131+
//diff-add
122132
output "public_ip" {
133+
//diff-add
123134
value = aws_instance.ec2_instance.public_ip
135+
//diff-add
124136
}
125-
137+
//diff-add
126138
output "subnet_id" {
139+
//diff-add
127140
value = aws_subnet.public_a.id
141+
//diff-add
128142
}
129-
143+
//diff-add
130144
output "security_group_id" {
145+
//diff-add
131146
value = aws_security_group.app_sg.id
147+
//diff-add
132148
}
133-
149+
//diff-add
134150
output "iam_instance_profile" {
151+
//diff-add
135152
value = aws_iam_instance_profile.instance_profile.name
153+
//diff-add
136154
}
137-
155+
//diff-add
138156
output "key_name" {
157+
//diff-add
139158
value = aws_key_pair.app_deployer.key_name
159+
//diff-add
140160
}
141-
161+
//diff-add
142162
output "instance_type" {
163+
//diff-add
143164
value = aws_instance.ec2_instance.instance_type
144-
}
145165
//diff-add
166+
}
146167
```
147168

148169
Make sure, that you're using the same values as in the main deployment, so if you're using different `ECR` repository name, `subnet_id`, `security_group_id`, `iam_instance_profile`, `key_name` or `instance_type` in your main deployment, you should use the same values in the sandbox deployment.

0 commit comments

Comments
 (0)