Skip to main content

Pulumi ResourceOptions


additionalSecretOutputs

aliases

  • λ¦¬μ†ŒμŠ€μ˜ 이름을 λ°”κΏ€ λ•Œ ν™œμš©ν•  수 있음

customTimeouts

deleteBeforeReplace

dependsOn

ignore_changes

ignore_changes에 속성을 μΆ”κ°€ν•˜λ©΄ λ¦¬μ†ŒμŠ€λ₯Ό μ—…λ°μ΄νŠΈ ν•  λ•Œ ν•΄λ‹Ή 속성이 λ³€κ²½λ˜λ”λΌλ„ λ¬΄μ‹œλ©λ‹ˆλ‹€. ignore_changes μΆ”κ°€λœ 속성은 ν•΄λ‹Ή λ¦¬μ†ŒμŠ€κ°€ 생성될 λ•Œμ—λ§Œ μ‚¬μš©λ©λ‹ˆλ‹€.

# 이 scurity group은 cluster load balancerλ₯Ό μœ„ν•œ 것이기 λ•Œλ¬Έμ— ingressκ°€
# μžλ™μœΌλ‘œ μˆ˜μ •λ  수 μžˆμŠ΅λ‹ˆλ‹€.
elb_sg = aws.ec2.SecurityGroup(
"elb-sg",
vpc_id=vpc.id,
tags={
"kubernetes.io/cluster/hhk-cluster": "owned",
},
opts=pulumi.ResourceOptions(ignore_changes=["ingress"]),
)

import

parent

λ¦¬μ†ŒμŠ€μ˜ μƒμœ„ ν•­λͺ©μ„ 지정할 수 μžˆμŠ΅λ‹ˆλ‹€.

_tags = {"Name": f"{cluster}-vpc"}
_tags.update(common_tags)
vpc = aws.ec2.Vpc(
_tags["Name"],
cidr_block="10.234.0.0/16",
tags=_tags,
)

_tags = {"Name": f"{cluster}-igw"}
_tags.update(common_tags)
igw = aws.ec2.InternetGateway(
_tags["Name"],
vpc_id=vpc.id,
tags=_tags,
opts=pulumi.ResourceOptions(parent=vpc),
)
Updating (dev):
Type Name Status
+ pulumi:pulumi:Stack kubernetes-dev created
+ └─ aws:ec2:Vpc kubernetes-vpc created
+ └─ aws:ec2:InternetGateway kubernetes-igw created

protect

provider

replaceOnChanges

transformations

version

Reference