File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
06-incorporando-nuevos-providers
07-usando-funciones-looping Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,9 @@ Crear `lab/lc_web_app/s3.tf`
19
19
``` tf
20
20
# aws_s3_bucket
21
21
22
- # aws_s3_bucket_object
22
+ # aws_s3_bucket_acl
23
+
24
+ # aws_s3_bucket_policy
23
25
24
26
# aws_iam_role
25
27
Original file line number Diff line number Diff line change 2
2
3
3
## Pre requisitos
4
4
5
- > Si has destruidfo el entorno recrealo
5
+ > Si has destruido el entorno recrealo
6
6
7
7
``` bash
8
8
cd lab/lc_web_app/
@@ -15,8 +15,8 @@ terraform apply "d4.tfplan"
15
15
Actualizamos ` s3.tf `
16
16
17
17
``` diff
18
- # # aws_s3_bucket_object
19
- + resource "aws_s3_bucket_object " "website_content" {
18
+ # # aws_s3_object
19
+ + resource "aws_s3_object " "website_content" {
20
20
+ for_each = {
21
21
+ website = "/website/index.html"
22
22
+ logo = "/website/fruits.png"
@@ -27,15 +27,15 @@ Actualizamos `s3.tf`
27
27
+
28
28
+ tags = local.common_tags
29
29
+ }
30
- - resource "aws_s3_bucket_object " "website" {
30
+ - resource "aws_s3_object " "website" {
31
31
- bucket = aws_s3_bucket.web_bucket.bucket
32
32
- key = "/website/index.html"
33
33
- source = "./website/index.html"
34
34
-
35
35
- tags = local.common_tags
36
36
- }
37
37
-
38
- - resource "aws_s3_bucket_object " "graphic" {
38
+ - resource "aws_s3_object " "graphic" {
39
39
- bucket = aws_s3_bucket.web_bucket.bucket
40
40
- key = "/website/fruits.png"
41
41
- source = "./website/fruits.png"
You can’t perform that action at this time.
0 commit comments