Skip to content

Commit 9d01834

Browse files
author
abregman
committed
Update CKA
Added additional questions to CKA and fixed some styling issues with pulumi Python code.
1 parent e3c34aa commit 9d01834

File tree

6 files changed

+466
-58
lines changed

6 files changed

+466
-58
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
:information_source:  This repo contains questions and exercises on various technical topics, sometimes related to DevOps and SRE
44

5-
:bar_chart:  There are currently **2477** exercises and questions
5+
:bar_chart:  There are currently **2354** exercises and questions
66

77
:books:  To learn more about DevOps and SRE, check the resources in [devops-resources](https://github.com/bregman-arie/devops-resources) repository
88

Diff for: topics/aws/exercises/new_vpc/pulumi/__main__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
pulumi.export("publicSubnetIds", vpc.public_subnet_ids)
88
pulumi.export("privateSubnetIds", vpc.private_subnet_ids)
99

10-
# Run 'pulumi up' to create it
10+
# Run 'pulumi up' to create it
+15-18
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
1-
import pulumi
21
import pulumi_aws as aws
32

43
# Private Bucket
54
private_bucket = aws.s3.Bucket("my-first-private-bucket",
6-
acl="private",
7-
tags={
8-
"Environment": "Exercise",
9-
"Name": "My First Private Bucket"},
10-
region="eu-west-2"
11-
)
5+
acl="private",
6+
tags={
7+
"Environment": "Exercise",
8+
"Name": "My First Private Bucket"},
9+
region="eu-west-2"
10+
)
1211

1312
# Bucket Object
14-
1513
aws.s3.BucketObject("bucketObject",
16-
key="some_object_key",
17-
bucket=private_bucket.id,
18-
content="object content")
14+
key="some_object_key",
15+
bucket=private_bucket.id,
16+
content="object content")
1917

2018
# Public Bucket
2119
aws.s3.Bucket("my-first-public-bucket",
22-
acl="private",
23-
tags={
24-
"Environment": "Exercise",
25-
"Name": "My First Public Bucket"},
26-
region="eu-west-1",
27-
versioning=aws.s3.BucketVersioningArgs(enabled=True)
28-
)
20+
acl="private",
21+
tags={
22+
"Environment": "Exercise",
23+
"Name": "My First Public Bucket"},
24+
region="eu-west-1",
25+
versioning=aws.s3.BucketVersioningArgs(enabled=True))

Diff for: topics/aws/exercises/subnets/pulumi/__main__.py

+17-18
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
1-
import pulumi
21
import pulumi_aws as aws
32

4-
availableZones = pulumi_aws.get_availability_zones(state="available")
3+
availableZones = aws.get_availability_zones(state="available")
54

65
aws.ec2.Subnet("NewSubnet1",
7-
vpc_id=aws_vpc["main"]["id"],
8-
cidr_block="10.0.0.0/24",
9-
availability_zone=availableZones.names[0],
10-
tags={"Name": "NewSubnet1"}
11-
)
6+
vpc_id=aws.vpc["main"]["id"],
7+
cidr_block="10.0.0.0/24",
8+
availability_zone=availableZones.names[0],
9+
tags={"Name": "NewSubnet1"}
10+
)
1211

1312
aws.ec2.Subnet("NewSubnet2",
14-
vpc_id=aws_vpc["main"]["id"],
15-
cidr_block="10.0.1.0/24",
16-
availability_zone=availableZones.names[1]
17-
tags={"Name": "NewSubnet2"}
18-
)
13+
vpc_id=aws.vpc["main"]["id"],
14+
cidr_block="10.0.1.0/24",
15+
availability_zone=availableZones.names[1],
16+
tags={"Name": "NewSubnet2"}
17+
)
1918

2019
aws.ec2.Subnet("NewSubnet3",
21-
vpc_id=aws_vpc["main"]["id"],
22-
cidr_block="10.0.2.0/24",
23-
availability_zone=availableZones.names[2]
24-
tags={"Name": "NewSubnet3"}
25-
)
20+
vpc_id=aws.vpc["main"]["id"],
21+
cidr_block="10.0.2.0/24",
22+
availability_zone=availableZones.names[2],
23+
tags={"Name": "NewSubnet3"}
24+
)
2625

27-
# Run "pulumi up"
26+
# Run "pulumi up"

0 commit comments

Comments
 (0)