Skip to content

Instantly share code, notes, and snippets.

@1oglop1
Created August 4, 2021 12:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 1oglop1/f3c4012b281fc344b52fd570441938c2 to your computer and use it in GitHub Desktop.
Save 1oglop1/f3c4012b281fc344b52fd570441938c2 to your computer and use it in GitHub Desktop.
pulumi aliases
class EBEnvironmentEc2(pulumi.ComponentResource):
def __init__(self, env_config: EBEnvironmentEc2Config, opts: pulumi.ResourceOptions = None):
super().__init__(
"stekz:infrastructure:aws:elastic-beanstalk:EBEnvironmentEc2",
f"{env_config.environment_name}-eb-component",
None,
opts,
)
self._config = env_config
# merge parent options and override with child options
self._opts = pulumi.ResourceOptions.merge(
opts,
pulumi.ResourceOptions(parent=self),
)
class EBEnvironment(pulumi.ComponentResource):
def __init__(self, env_config: EBEnvironmentConfig, opts: pulumi.ResourceOptions = None):
super().__init__(
"stekz:infrastructure:aws:elastic-beanstalk:EBEnvironment",
f"{env_config.environment_name}-eb-component",
None,
opts,
)
self._config = env_config
# merge parent options and override with child options
self._opts = pulumi.ResourceOptions.merge(
opts,
pulumi.ResourceOptions(parent=self),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment