This page documents the language specification for the aws package. If you're looking for help working with the inputs, outputs, or functions of aws resources in a Pulumi program, please see the resource documentation for examples and API reference.
opsworks¶
This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-aws repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-aws repo.
- class
pulumi_aws.opsworks.Application(resource_name, opts=None, app_sources=None, auto_bundle_on_deploy=None, aws_flow_ruby_settings=None, data_source_arn=None, data_source_database_name=None, data_source_type=None, description=None, document_root=None, domains=None, enable_ssl=None, environments=None, name=None, rails_env=None, short_name=None, ssl_configurations=None, stack_id=None, type=None, __props__=None, __name__=None, __opts__=None)¶ Provides an OpsWorks application resource.
import pulumi import pulumi_aws as aws foo_app = aws.opsworks.Application("foo-app", app_sources=[{ "revision": "master", "type": "git", "url": "https://github.com/example.git", }], auto_bundle_on_deploy=True, description="This is a Rails application", document_root="public", domains=[ "example.com", "sub.example.com", ], enable_ssl=True, environments=[{ "key": "key", "secure": False, "value": "value", }], rails_env="staging", short_name="foobar", ssl_configurations=[{ "certificate": (lambda path: open(path).read())("./foobar.crt"), "private_key": (lambda path: open(path).read())("./foobar.key"), }], stack_id=aws_opsworks_stack["main"]["id"], type="rails")
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
app_sources (pulumi.Input[list]) – SCM configuration of the app as described below.
auto_bundle_on_deploy (pulumi.Input[str]) – Run bundle install when deploying for application of type
rails.aws_flow_ruby_settings (pulumi.Input[str]) – Specify activity and workflow workers for your app using the aws-flow gem.
data_source_arn (pulumi.Input[str]) – The data source’s ARN.
data_source_database_name (pulumi.Input[str]) – The database name.
data_source_type (pulumi.Input[str]) – The data source’s type one of
AutoSelectOpsworksMysqlInstance,OpsworksMysqlInstance, orRdsDbInstance.description (pulumi.Input[str]) – A description of the app.
document_root (pulumi.Input[str]) – Subfolder for the document root for application of type
rails.domains (pulumi.Input[list]) – A list of virtual host alias.
enable_ssl (pulumi.Input[bool]) – Whether to enable SSL for the app. This must be set in order to let
ssl_configuration.private_key,ssl_configuration.certificateandssl_configuration.chaintake effect.environments (pulumi.Input[list]) – Object to define environment variables. Object is described below.
name (pulumi.Input[str]) – A human-readable name for the application.
rails_env (pulumi.Input[str]) – The name of the Rails environment for application of type
rails.short_name (pulumi.Input[str]) – A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update.
ssl_configurations (pulumi.Input[list]) – The SSL configuration of the app. Object is described below.
stack_id (pulumi.Input[str]) – The id of the stack the application will belong to.
type (pulumi.Input[str]) – Opsworks application type. One of
aws-flow-ruby,java,rails,php,nodejs,staticorother.
The app_sources object supports the following:
password(pulumi.Input[str]) - Password to use when authenticating to the source. This provider cannot perform drift detection of this configuration.revision(pulumi.Input[str]) - For sources that are version-aware, the revision to use.sshKey(pulumi.Input[str]) - SSH key to use when authenticating to the source. This provider cannot perform drift detection of this configuration.type(pulumi.Input[str]) - The type of source to use. For example, “archive”.url(pulumi.Input[str]) - The URL where the app resource can be found.username(pulumi.Input[str]) - Username to use when authenticating to the source.
The environments object supports the following:
key(pulumi.Input[str]) - Variable name.secure(pulumi.Input[bool]) - Set visibility of the variable value totrueorfalse.value(pulumi.Input[str]) - Variable value.
The ssl_configurations object supports the following:
certificate(pulumi.Input[str]) - The contents of the certificate’s domain.crt file.chain(pulumi.Input[str]) - Can be used to specify an intermediate certificate authority key or client authentication.private_key(pulumi.Input[str]) - The private key; the contents of the certificate’s domain.key file.
app_sources: pulumi.Output[list] = None¶SCM configuration of the app as described below.
password(str) - Password to use when authenticating to the source. This provider cannot perform drift detection of this configuration.revision(str) - For sources that are version-aware, the revision to use.sshKey(str) - SSH key to use when authenticating to the source. This provider cannot perform drift detection of this configuration.type(str) - The type of source to use. For example, “archive”.url(str) - The URL where the app resource can be found.username(str) - Username to use when authenticating to the source.
auto_bundle_on_deploy: pulumi.Output[str] = None¶Run bundle install when deploying for application of type
rails.
aws_flow_ruby_settings: pulumi.Output[str] = None¶Specify activity and workflow workers for your app using the aws-flow gem.
data_source_arn: pulumi.Output[str] = None¶The data source’s ARN.
data_source_database_name: pulumi.Output[str] = None¶The database name.
data_source_type: pulumi.Output[str] = None¶The data source’s type one of
AutoSelectOpsworksMysqlInstance,OpsworksMysqlInstance, orRdsDbInstance.
description: pulumi.Output[str] = None¶A description of the app.
document_root: pulumi.Output[str] = None¶Subfolder for the document root for application of type
rails.
domains: pulumi.Output[list] = None¶A list of virtual host alias.
enable_ssl: pulumi.Output[bool] = None¶Whether to enable SSL for the app. This must be set in order to let
ssl_configuration.private_key,ssl_configuration.certificateandssl_configuration.chaintake effect.
environments: pulumi.Output[list] = None¶Object to define environment variables. Object is described below.
key(str) - Variable name.secure(bool) - Set visibility of the variable value totrueorfalse.value(str) - Variable value.
name: pulumi.Output[str] = None¶A human-readable name for the application.
rails_env: pulumi.Output[str] = None¶The name of the Rails environment for application of type
rails.
short_name: pulumi.Output[str] = None¶A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update.
ssl_configurations: pulumi.Output[list] = None¶The SSL configuration of the app. Object is described below.
certificate(str) - The contents of the certificate’s domain.crt file.chain(str) - Can be used to specify an intermediate certificate authority key or client authentication.private_key(str) - The private key; the contents of the certificate’s domain.key file.
stack_id: pulumi.Output[str] = None¶The id of the stack the application will belong to.
type: pulumi.Output[str] = None¶Opsworks application type. One of
aws-flow-ruby,java,rails,php,nodejs,staticorother.
- static
get(resource_name, id, opts=None, app_sources=None, auto_bundle_on_deploy=None, aws_flow_ruby_settings=None, data_source_arn=None, data_source_database_name=None, data_source_type=None, description=None, document_root=None, domains=None, enable_ssl=None, environments=None, name=None, rails_env=None, short_name=None, ssl_configurations=None, stack_id=None, type=None)¶ Get an existing Application resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
app_sources (pulumi.Input[list]) – SCM configuration of the app as described below.
auto_bundle_on_deploy (pulumi.Input[str]) – Run bundle install when deploying for application of type
rails.aws_flow_ruby_settings (pulumi.Input[str]) – Specify activity and workflow workers for your app using the aws-flow gem.
data_source_arn (pulumi.Input[str]) – The data source’s ARN.
data_source_database_name (pulumi.Input[str]) – The database name.
data_source_type (pulumi.Input[str]) – The data source’s type one of
AutoSelectOpsworksMysqlInstance,OpsworksMysqlInstance, orRdsDbInstance.description (pulumi.Input[str]) – A description of the app.
document_root (pulumi.Input[str]) – Subfolder for the document root for application of type
rails.domains (pulumi.Input[list]) – A list of virtual host alias.
enable_ssl (pulumi.Input[bool]) – Whether to enable SSL for the app. This must be set in order to let
ssl_configuration.private_key,ssl_configuration.certificateandssl_configuration.chaintake effect.environments (pulumi.Input[list]) – Object to define environment variables. Object is described below.
name (pulumi.Input[str]) – A human-readable name for the application.
rails_env (pulumi.Input[str]) – The name of the Rails environment for application of type
rails.short_name (pulumi.Input[str]) – A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update.
ssl_configurations (pulumi.Input[list]) – The SSL configuration of the app. Object is described below.
stack_id (pulumi.Input[str]) – The id of the stack the application will belong to.
type (pulumi.Input[str]) – Opsworks application type. One of
aws-flow-ruby,java,rails,php,nodejs,staticorother.
The app_sources object supports the following:
password(pulumi.Input[str]) - Password to use when authenticating to the source. This provider cannot perform drift detection of this configuration.revision(pulumi.Input[str]) - For sources that are version-aware, the revision to use.sshKey(pulumi.Input[str]) - SSH key to use when authenticating to the source. This provider cannot perform drift detection of this configuration.type(pulumi.Input[str]) - The type of source to use. For example, “archive”.url(pulumi.Input[str]) - The URL where the app resource can be found.username(pulumi.Input[str]) - Username to use when authenticating to the source.
The environments object supports the following:
key(pulumi.Input[str]) - Variable name.secure(pulumi.Input[bool]) - Set visibility of the variable value totrueorfalse.value(pulumi.Input[str]) - Variable value.
The ssl_configurations object supports the following:
certificate(pulumi.Input[str]) - The contents of the certificate’s domain.crt file.chain(pulumi.Input[str]) - Can be used to specify an intermediate certificate authority key or client authentication.private_key(pulumi.Input[str]) - The private key; the contents of the certificate’s domain.key file.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_aws.opsworks.CustomLayer(resource_name, opts=None, auto_assign_elastic_ips=None, auto_assign_public_ips=None, auto_healing=None, custom_configure_recipes=None, custom_deploy_recipes=None, custom_instance_profile_arn=None, custom_json=None, custom_security_group_ids=None, custom_setup_recipes=None, custom_shutdown_recipes=None, custom_undeploy_recipes=None, drain_elb_on_shutdown=None, ebs_volumes=None, elastic_load_balancer=None, install_updates_on_boot=None, instance_shutdown_timeout=None, name=None, short_name=None, stack_id=None, system_packages=None, tags=None, use_ebs_optimized_instances=None, __props__=None, __name__=None, __opts__=None)¶ Provides an OpsWorks custom layer resource.
import pulumi import pulumi_aws as aws custlayer = aws.opsworks.CustomLayer("custlayer", short_name="awesome", stack_id=aws_opsworks_stack["main"]["id"])
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
auto_assign_elastic_ips (pulumi.Input[bool]) – Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips (pulumi.Input[bool]) – For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing (pulumi.Input[bool]) – Whether to enable auto-healing for the layer.
custom_instance_profile_arn (pulumi.Input[str]) – The ARN of an IAM profile that will be used for the layer’s instances.
custom_json (pulumi.Input[str]) – Custom JSON attributes to apply to the layer.
custom_security_group_ids (pulumi.Input[list]) – Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown (pulumi.Input[bool]) – Whether to enable Elastic Load Balancing connection draining.
ebs_volumes (pulumi.Input[list]) –
ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.elastic_load_balancer (pulumi.Input[str]) – Name of an Elastic Load Balancer to attach to this layer
install_updates_on_boot (pulumi.Input[bool]) – Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout (pulumi.Input[float]) – The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
name (pulumi.Input[str]) – A human-readable name for the layer.
short_name (pulumi.Input[str]) – A short, machine-readable name for the layer, which will be used to identify it in the Chef node JSON.
stack_id (pulumi.Input[str]) – The id of the stack the layer will belong to.
system_packages (pulumi.Input[list]) – Names of a set of system packages to install on the layer’s instances.
tags (pulumi.Input[dict]) – A map of tags to assign to the resource.
use_ebs_optimized_instances (pulumi.Input[bool]) – Whether to use EBS-optimized instances.
The ebs_volumes object supports the following:
encrypted(pulumi.Input[bool]) - Encrypt the volume.iops(pulumi.Input[float]) - For PIOPS volumes, the IOPS per disk.mountPoint(pulumi.Input[str]) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(pulumi.Input[float]) - The number of disks to use for the EBS volume.raidLevel(pulumi.Input[str]) - The RAID level to use for the volume.size(pulumi.Input[float]) - The size of the volume in gigabytes.type(pulumi.Input[str]) - The type of volume to create. This may bestandard(the default),io1orgp2.
arn: pulumi.Output[str] = None¶The Amazon Resource Name(ARN) of the layer.
auto_assign_elastic_ips: pulumi.Output[bool] = None¶Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips: pulumi.Output[bool] = None¶For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing: pulumi.Output[bool] = None¶Whether to enable auto-healing for the layer.
custom_instance_profile_arn: pulumi.Output[str] = None¶The ARN of an IAM profile that will be used for the layer’s instances.
custom_json: pulumi.Output[str] = None¶Custom JSON attributes to apply to the layer.
custom_security_group_ids: pulumi.Output[list] = None¶Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown: pulumi.Output[bool] = None¶Whether to enable Elastic Load Balancing connection draining.
ebs_volumes: pulumi.Output[list] = None¶ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.encrypted(bool) - Encrypt the volume.iops(float) - For PIOPS volumes, the IOPS per disk.mountPoint(str) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(float) - The number of disks to use for the EBS volume.raidLevel(str) - The RAID level to use for the volume.size(float) - The size of the volume in gigabytes.type(str) - The type of volume to create. This may bestandard(the default),io1orgp2.
elastic_load_balancer: pulumi.Output[str] = None¶Name of an Elastic Load Balancer to attach to this layer
install_updates_on_boot: pulumi.Output[bool] = None¶Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout: pulumi.Output[float] = None¶The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
name: pulumi.Output[str] = None¶A human-readable name for the layer.
short_name: pulumi.Output[str] = None¶A short, machine-readable name for the layer, which will be used to identify it in the Chef node JSON.
stack_id: pulumi.Output[str] = None¶The id of the stack the layer will belong to.
system_packages: pulumi.Output[list] = None¶Names of a set of system packages to install on the layer’s instances.
A map of tags to assign to the resource.
use_ebs_optimized_instances: pulumi.Output[bool] = None¶Whether to use EBS-optimized instances.
- static
get(resource_name, id, opts=None, arn=None, auto_assign_elastic_ips=None, auto_assign_public_ips=None, auto_healing=None, custom_configure_recipes=None, custom_deploy_recipes=None, custom_instance_profile_arn=None, custom_json=None, custom_security_group_ids=None, custom_setup_recipes=None, custom_shutdown_recipes=None, custom_undeploy_recipes=None, drain_elb_on_shutdown=None, ebs_volumes=None, elastic_load_balancer=None, install_updates_on_boot=None, instance_shutdown_timeout=None, name=None, short_name=None, stack_id=None, system_packages=None, tags=None, use_ebs_optimized_instances=None)¶ Get an existing CustomLayer resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
arn (pulumi.Input[str]) – The Amazon Resource Name(ARN) of the layer.
auto_assign_elastic_ips (pulumi.Input[bool]) – Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips (pulumi.Input[bool]) – For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing (pulumi.Input[bool]) – Whether to enable auto-healing for the layer.
custom_instance_profile_arn (pulumi.Input[str]) – The ARN of an IAM profile that will be used for the layer’s instances.
custom_json (pulumi.Input[str]) – Custom JSON attributes to apply to the layer.
custom_security_group_ids (pulumi.Input[list]) – Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown (pulumi.Input[bool]) – Whether to enable Elastic Load Balancing connection draining.
ebs_volumes (pulumi.Input[list]) –
ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.elastic_load_balancer (pulumi.Input[str]) – Name of an Elastic Load Balancer to attach to this layer
install_updates_on_boot (pulumi.Input[bool]) – Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout (pulumi.Input[float]) – The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
name (pulumi.Input[str]) – A human-readable name for the layer.
short_name (pulumi.Input[str]) – A short, machine-readable name for the layer, which will be used to identify it in the Chef node JSON.
stack_id (pulumi.Input[str]) – The id of the stack the layer will belong to.
system_packages (pulumi.Input[list]) – Names of a set of system packages to install on the layer’s instances.
tags (pulumi.Input[dict]) – A map of tags to assign to the resource.
use_ebs_optimized_instances (pulumi.Input[bool]) – Whether to use EBS-optimized instances.
The ebs_volumes object supports the following:
encrypted(pulumi.Input[bool]) - Encrypt the volume.iops(pulumi.Input[float]) - For PIOPS volumes, the IOPS per disk.mountPoint(pulumi.Input[str]) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(pulumi.Input[float]) - The number of disks to use for the EBS volume.raidLevel(pulumi.Input[str]) - The RAID level to use for the volume.size(pulumi.Input[float]) - The size of the volume in gigabytes.type(pulumi.Input[str]) - The type of volume to create. This may bestandard(the default),io1orgp2.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_aws.opsworks.GangliaLayer(resource_name, opts=None, auto_assign_elastic_ips=None, auto_assign_public_ips=None, auto_healing=None, custom_configure_recipes=None, custom_deploy_recipes=None, custom_instance_profile_arn=None, custom_json=None, custom_security_group_ids=None, custom_setup_recipes=None, custom_shutdown_recipes=None, custom_undeploy_recipes=None, drain_elb_on_shutdown=None, ebs_volumes=None, elastic_load_balancer=None, install_updates_on_boot=None, instance_shutdown_timeout=None, name=None, password=None, stack_id=None, system_packages=None, tags=None, url=None, use_ebs_optimized_instances=None, username=None, __props__=None, __name__=None, __opts__=None)¶ Provides an OpsWorks Ganglia layer resource.
import pulumi import pulumi_aws as aws monitor = aws.opsworks.GangliaLayer("monitor", password="foobarbaz", stack_id=aws_opsworks_stack["main"]["id"])
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
auto_assign_elastic_ips (pulumi.Input[bool]) – Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips (pulumi.Input[bool]) – For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing (pulumi.Input[bool]) – Whether to enable auto-healing for the layer.
custom_instance_profile_arn (pulumi.Input[str]) – The ARN of an IAM profile that will be used for the layer’s instances.
custom_json (pulumi.Input[str]) – Custom JSON attributes to apply to the layer.
custom_security_group_ids (pulumi.Input[list]) – Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown (pulumi.Input[bool]) – Whether to enable Elastic Load Balancing connection draining.
ebs_volumes (pulumi.Input[list]) –
ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.elastic_load_balancer (pulumi.Input[str]) – Name of an Elastic Load Balancer to attach to this layer
install_updates_on_boot (pulumi.Input[bool]) – Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout (pulumi.Input[float]) – The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
name (pulumi.Input[str]) – A human-readable name for the layer.
password (pulumi.Input[str]) – The password to use for Ganglia.
stack_id (pulumi.Input[str]) – The id of the stack the layer will belong to.
system_packages (pulumi.Input[list]) – Names of a set of system packages to install on the layer’s instances.
tags (pulumi.Input[dict]) – A map of tags to assign to the resource.
url (pulumi.Input[str]) – The URL path to use for Ganglia. Defaults to “/ganglia”.
use_ebs_optimized_instances (pulumi.Input[bool]) – Whether to use EBS-optimized instances.
username (pulumi.Input[str]) – The username to use for Ganglia. Defaults to “opsworks”.
The ebs_volumes object supports the following:
encrypted(pulumi.Input[bool])iops(pulumi.Input[float]) - For PIOPS volumes, the IOPS per disk.mountPoint(pulumi.Input[str]) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(pulumi.Input[float]) - The number of disks to use for the EBS volume.raidLevel(pulumi.Input[str]) - The RAID level to use for the volume.size(pulumi.Input[float]) - The size of the volume in gigabytes.type(pulumi.Input[str]) - The type of volume to create. This may bestandard(the default),io1orgp2.
arn: pulumi.Output[str] = None¶The Amazon Resource Name(ARN) of the layer.
auto_assign_elastic_ips: pulumi.Output[bool] = None¶Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips: pulumi.Output[bool] = None¶For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing: pulumi.Output[bool] = None¶Whether to enable auto-healing for the layer.
custom_instance_profile_arn: pulumi.Output[str] = None¶The ARN of an IAM profile that will be used for the layer’s instances.
custom_json: pulumi.Output[str] = None¶Custom JSON attributes to apply to the layer.
custom_security_group_ids: pulumi.Output[list] = None¶Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown: pulumi.Output[bool] = None¶Whether to enable Elastic Load Balancing connection draining.
ebs_volumes: pulumi.Output[list] = None¶ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.encrypted(bool)iops(float) - For PIOPS volumes, the IOPS per disk.mountPoint(str) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(float) - The number of disks to use for the EBS volume.raidLevel(str) - The RAID level to use for the volume.size(float) - The size of the volume in gigabytes.type(str) - The type of volume to create. This may bestandard(the default),io1orgp2.
elastic_load_balancer: pulumi.Output[str] = None¶Name of an Elastic Load Balancer to attach to this layer
install_updates_on_boot: pulumi.Output[bool] = None¶Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout: pulumi.Output[float] = None¶The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
name: pulumi.Output[str] = None¶A human-readable name for the layer.
password: pulumi.Output[str] = None¶The password to use for Ganglia.
stack_id: pulumi.Output[str] = None¶The id of the stack the layer will belong to.
system_packages: pulumi.Output[list] = None¶Names of a set of system packages to install on the layer’s instances.
A map of tags to assign to the resource.
url: pulumi.Output[str] = None¶The URL path to use for Ganglia. Defaults to “/ganglia”.
use_ebs_optimized_instances: pulumi.Output[bool] = None¶Whether to use EBS-optimized instances.
username: pulumi.Output[str] = None¶The username to use for Ganglia. Defaults to “opsworks”.
- static
get(resource_name, id, opts=None, arn=None, auto_assign_elastic_ips=None, auto_assign_public_ips=None, auto_healing=None, custom_configure_recipes=None, custom_deploy_recipes=None, custom_instance_profile_arn=None, custom_json=None, custom_security_group_ids=None, custom_setup_recipes=None, custom_shutdown_recipes=None, custom_undeploy_recipes=None, drain_elb_on_shutdown=None, ebs_volumes=None, elastic_load_balancer=None, install_updates_on_boot=None, instance_shutdown_timeout=None, name=None, password=None, stack_id=None, system_packages=None, tags=None, url=None, use_ebs_optimized_instances=None, username=None)¶ Get an existing GangliaLayer resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
arn (pulumi.Input[str]) – The Amazon Resource Name(ARN) of the layer.
auto_assign_elastic_ips (pulumi.Input[bool]) – Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips (pulumi.Input[bool]) – For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing (pulumi.Input[bool]) – Whether to enable auto-healing for the layer.
custom_instance_profile_arn (pulumi.Input[str]) – The ARN of an IAM profile that will be used for the layer’s instances.
custom_json (pulumi.Input[str]) – Custom JSON attributes to apply to the layer.
custom_security_group_ids (pulumi.Input[list]) – Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown (pulumi.Input[bool]) – Whether to enable Elastic Load Balancing connection draining.
ebs_volumes (pulumi.Input[list]) –
ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.elastic_load_balancer (pulumi.Input[str]) – Name of an Elastic Load Balancer to attach to this layer
install_updates_on_boot (pulumi.Input[bool]) – Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout (pulumi.Input[float]) – The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
name (pulumi.Input[str]) – A human-readable name for the layer.
password (pulumi.Input[str]) – The password to use for Ganglia.
stack_id (pulumi.Input[str]) – The id of the stack the layer will belong to.
system_packages (pulumi.Input[list]) – Names of a set of system packages to install on the layer’s instances.
tags (pulumi.Input[dict]) – A map of tags to assign to the resource.
url (pulumi.Input[str]) – The URL path to use for Ganglia. Defaults to “/ganglia”.
use_ebs_optimized_instances (pulumi.Input[bool]) – Whether to use EBS-optimized instances.
username (pulumi.Input[str]) – The username to use for Ganglia. Defaults to “opsworks”.
The ebs_volumes object supports the following:
encrypted(pulumi.Input[bool])iops(pulumi.Input[float]) - For PIOPS volumes, the IOPS per disk.mountPoint(pulumi.Input[str]) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(pulumi.Input[float]) - The number of disks to use for the EBS volume.raidLevel(pulumi.Input[str]) - The RAID level to use for the volume.size(pulumi.Input[float]) - The size of the volume in gigabytes.type(pulumi.Input[str]) - The type of volume to create. This may bestandard(the default),io1orgp2.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_aws.opsworks.HaproxyLayer(resource_name, opts=None, auto_assign_elastic_ips=None, auto_assign_public_ips=None, auto_healing=None, custom_configure_recipes=None, custom_deploy_recipes=None, custom_instance_profile_arn=None, custom_json=None, custom_security_group_ids=None, custom_setup_recipes=None, custom_shutdown_recipes=None, custom_undeploy_recipes=None, drain_elb_on_shutdown=None, ebs_volumes=None, elastic_load_balancer=None, healthcheck_method=None, healthcheck_url=None, install_updates_on_boot=None, instance_shutdown_timeout=None, name=None, stack_id=None, stats_enabled=None, stats_password=None, stats_url=None, stats_user=None, system_packages=None, tags=None, use_ebs_optimized_instances=None, __props__=None, __name__=None, __opts__=None)¶ Provides an OpsWorks haproxy layer resource.
import pulumi import pulumi_aws as aws lb = aws.opsworks.HaproxyLayer("lb", stack_id=aws_opsworks_stack["main"]["id"], stats_password="foobarbaz")
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
auto_assign_elastic_ips (pulumi.Input[bool]) – Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips (pulumi.Input[bool]) – For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing (pulumi.Input[bool]) – Whether to enable auto-healing for the layer.
custom_instance_profile_arn (pulumi.Input[str]) – The ARN of an IAM profile that will be used for the layer’s instances.
custom_json (pulumi.Input[str]) – Custom JSON attributes to apply to the layer.
custom_security_group_ids (pulumi.Input[list]) – Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown (pulumi.Input[bool]) – Whether to enable Elastic Load Balancing connection draining.
ebs_volumes (pulumi.Input[list]) –
ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.elastic_load_balancer (pulumi.Input[str]) – Name of an Elastic Load Balancer to attach to this layer
healthcheck_method (pulumi.Input[str]) – HTTP method to use for instance healthchecks. Defaults to “OPTIONS”.
healthcheck_url (pulumi.Input[str]) – URL path to use for instance healthchecks. Defaults to “/”.
install_updates_on_boot (pulumi.Input[bool]) – Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout (pulumi.Input[float]) – The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
name (pulumi.Input[str]) – A human-readable name for the layer.
stack_id (pulumi.Input[str]) – The id of the stack the layer will belong to.
stats_enabled (pulumi.Input[bool]) – Whether to enable HAProxy stats.
stats_password (pulumi.Input[str]) – The password to use for HAProxy stats.
stats_url (pulumi.Input[str]) – The HAProxy stats URL. Defaults to “/haproxy?stats”.
stats_user (pulumi.Input[str]) – The username for HAProxy stats. Defaults to “opsworks”.
system_packages (pulumi.Input[list]) – Names of a set of system packages to install on the layer’s instances.
tags (pulumi.Input[dict]) – A map of tags to assign to the resource.
use_ebs_optimized_instances (pulumi.Input[bool]) – Whether to use EBS-optimized instances.
The ebs_volumes object supports the following:
encrypted(pulumi.Input[bool])iops(pulumi.Input[float]) - For PIOPS volumes, the IOPS per disk.mountPoint(pulumi.Input[str]) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(pulumi.Input[float]) - The number of disks to use for the EBS volume.raidLevel(pulumi.Input[str]) - The RAID level to use for the volume.size(pulumi.Input[float]) - The size of the volume in gigabytes.type(pulumi.Input[str]) - The type of volume to create. This may bestandard(the default),io1orgp2.
arn: pulumi.Output[str] = None¶The Amazon Resource Name(ARN) of the layer.
auto_assign_elastic_ips: pulumi.Output[bool] = None¶Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips: pulumi.Output[bool] = None¶For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing: pulumi.Output[bool] = None¶Whether to enable auto-healing for the layer.
custom_instance_profile_arn: pulumi.Output[str] = None¶The ARN of an IAM profile that will be used for the layer’s instances.
custom_json: pulumi.Output[str] = None¶Custom JSON attributes to apply to the layer.
custom_security_group_ids: pulumi.Output[list] = None¶Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown: pulumi.Output[bool] = None¶Whether to enable Elastic Load Balancing connection draining.
ebs_volumes: pulumi.Output[list] = None¶ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.encrypted(bool)iops(float) - For PIOPS volumes, the IOPS per disk.mountPoint(str) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(float) - The number of disks to use for the EBS volume.raidLevel(str) - The RAID level to use for the volume.size(float) - The size of the volume in gigabytes.type(str) - The type of volume to create. This may bestandard(the default),io1orgp2.
elastic_load_balancer: pulumi.Output[str] = None¶Name of an Elastic Load Balancer to attach to this layer
healthcheck_method: pulumi.Output[str] = None¶HTTP method to use for instance healthchecks. Defaults to “OPTIONS”.
healthcheck_url: pulumi.Output[str] = None¶URL path to use for instance healthchecks. Defaults to “/”.
install_updates_on_boot: pulumi.Output[bool] = None¶Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout: pulumi.Output[float] = None¶The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
name: pulumi.Output[str] = None¶A human-readable name for the layer.
stack_id: pulumi.Output[str] = None¶The id of the stack the layer will belong to.
stats_enabled: pulumi.Output[bool] = None¶Whether to enable HAProxy stats.
stats_password: pulumi.Output[str] = None¶The password to use for HAProxy stats.
stats_url: pulumi.Output[str] = None¶The HAProxy stats URL. Defaults to “/haproxy?stats”.
stats_user: pulumi.Output[str] = None¶The username for HAProxy stats. Defaults to “opsworks”.
system_packages: pulumi.Output[list] = None¶Names of a set of system packages to install on the layer’s instances.
A map of tags to assign to the resource.
use_ebs_optimized_instances: pulumi.Output[bool] = None¶Whether to use EBS-optimized instances.
- static
get(resource_name, id, opts=None, arn=None, auto_assign_elastic_ips=None, auto_assign_public_ips=None, auto_healing=None, custom_configure_recipes=None, custom_deploy_recipes=None, custom_instance_profile_arn=None, custom_json=None, custom_security_group_ids=None, custom_setup_recipes=None, custom_shutdown_recipes=None, custom_undeploy_recipes=None, drain_elb_on_shutdown=None, ebs_volumes=None, elastic_load_balancer=None, healthcheck_method=None, healthcheck_url=None, install_updates_on_boot=None, instance_shutdown_timeout=None, name=None, stack_id=None, stats_enabled=None, stats_password=None, stats_url=None, stats_user=None, system_packages=None, tags=None, use_ebs_optimized_instances=None)¶ Get an existing HaproxyLayer resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
arn (pulumi.Input[str]) – The Amazon Resource Name(ARN) of the layer.
auto_assign_elastic_ips (pulumi.Input[bool]) – Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips (pulumi.Input[bool]) – For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing (pulumi.Input[bool]) – Whether to enable auto-healing for the layer.
custom_instance_profile_arn (pulumi.Input[str]) – The ARN of an IAM profile that will be used for the layer’s instances.
custom_json (pulumi.Input[str]) – Custom JSON attributes to apply to the layer.
custom_security_group_ids (pulumi.Input[list]) – Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown (pulumi.Input[bool]) – Whether to enable Elastic Load Balancing connection draining.
ebs_volumes (pulumi.Input[list]) –
ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.elastic_load_balancer (pulumi.Input[str]) – Name of an Elastic Load Balancer to attach to this layer
healthcheck_method (pulumi.Input[str]) – HTTP method to use for instance healthchecks. Defaults to “OPTIONS”.
healthcheck_url (pulumi.Input[str]) – URL path to use for instance healthchecks. Defaults to “/”.
install_updates_on_boot (pulumi.Input[bool]) – Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout (pulumi.Input[float]) – The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
name (pulumi.Input[str]) – A human-readable name for the layer.
stack_id (pulumi.Input[str]) – The id of the stack the layer will belong to.
stats_enabled (pulumi.Input[bool]) – Whether to enable HAProxy stats.
stats_password (pulumi.Input[str]) – The password to use for HAProxy stats.
stats_url (pulumi.Input[str]) – The HAProxy stats URL. Defaults to “/haproxy?stats”.
stats_user (pulumi.Input[str]) – The username for HAProxy stats. Defaults to “opsworks”.
system_packages (pulumi.Input[list]) – Names of a set of system packages to install on the layer’s instances.
tags (pulumi.Input[dict]) – A map of tags to assign to the resource.
use_ebs_optimized_instances (pulumi.Input[bool]) – Whether to use EBS-optimized instances.
The ebs_volumes object supports the following:
encrypted(pulumi.Input[bool])iops(pulumi.Input[float]) - For PIOPS volumes, the IOPS per disk.mountPoint(pulumi.Input[str]) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(pulumi.Input[float]) - The number of disks to use for the EBS volume.raidLevel(pulumi.Input[str]) - The RAID level to use for the volume.size(pulumi.Input[float]) - The size of the volume in gigabytes.type(pulumi.Input[str]) - The type of volume to create. This may bestandard(the default),io1orgp2.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_aws.opsworks.Instance(resource_name, opts=None, agent_version=None, ami_id=None, architecture=None, auto_scaling_type=None, availability_zone=None, created_at=None, delete_ebs=None, delete_eip=None, ebs_block_devices=None, ebs_optimized=None, ecs_cluster_arn=None, elastic_ip=None, ephemeral_block_devices=None, hostname=None, infrastructure_class=None, install_updates_on_boot=None, instance_profile_arn=None, instance_type=None, last_service_error_id=None, layer_ids=None, os=None, platform=None, private_dns=None, private_ip=None, public_dns=None, public_ip=None, registered_by=None, reported_agent_version=None, reported_os_family=None, reported_os_name=None, reported_os_version=None, root_block_devices=None, root_device_type=None, root_device_volume_id=None, security_group_ids=None, ssh_host_dsa_key_fingerprint=None, ssh_host_rsa_key_fingerprint=None, ssh_key_name=None, stack_id=None, state=None, status=None, subnet_id=None, tenancy=None, virtualization_type=None, __props__=None, __name__=None, __opts__=None)¶ Provides an OpsWorks instance resource.
import pulumi import pulumi_aws as aws my_instance = aws.opsworks.Instance("my-instance", instance_type="t2.micro", layer_ids=[aws_opsworks_custom_layer["my-layer"]["id"]], os="Amazon Linux 2015.09", stack_id=aws_opsworks_stack["main"]["id"], state="stopped")
Each of the
*_block_deviceattributes controls a portion of the AWS Instance’s “Block Device Mapping”. It’s a good idea to familiarize yourself with AWS’s Block Device Mapping docs to understand the implications of using these attributes.The
root_block_devicemapping supports the following:volume_type- (Optional) The type of volume. Can be"standard","gp2", or"io1". (Default:"standard").volume_size- (Optional) The size of the volume in gigabytes.iops- (Optional) The amount of provisioned IOPS. This must be set with avolume_typeof"io1".delete_on_termination- (Optional) Whether the volume should be destroyed on instance termination (Default:true).
Modifying any of the
root_block_devicesettings requires resource replacement.Each
ebs_block_devicesupports the following:device_name- The name of the device to mount.snapshot_id- (Optional) The Snapshot ID to mount.volume_type- (Optional) The type of volume. Can be"standard","gp2", or"io1". (Default:"standard").volume_size- (Optional) The size of the volume in gigabytes.iops- (Optional) The amount of provisioned IOPS. This must be set with avolume_typeof"io1".delete_on_termination- (Optional) Whether the volume should be destroyed on instance termination (Default:true).
Modifying any
ebs_block_devicecurrently requires resource replacement.Each
ephemeral_block_devicesupports the following:device_name- The name of the block device to mount on the instance.virtual_name- The Instance Store Device Name (e.g."ephemeral0")
Each AWS Instance type has a different set of Instance Store block devices available for attachment. AWS publishes a list of which ephemeral devices are available on each type. The devices are always identified by the
virtual_namein the format"ephemeral{0..N}".NOTE: Currently, changes to
*_block_deviceconfiguration of existing resources cannot be automatically detected by this provider. After making updates to block device configuration, resource recreation can be manually triggered by using the ``up` command with the –replace argument <https://www.pulumi.com/docs/reference/cli/pulumi_up/>`_.- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
agent_version (pulumi.Input[str]) – The AWS OpsWorks agent to install. Defaults to
"INHERIT".ami_id (pulumi.Input[str]) – The AMI to use for the instance. If an AMI is specified,
osmust be"Custom".architecture (pulumi.Input[str]) – Machine architecture for created instances. Can be either
"x86_64"(the default) or"i386"auto_scaling_type (pulumi.Input[str]) – Creates load-based or time-based instances. If set, can be either:
"load"or"timer".availability_zone (pulumi.Input[str]) – Name of the availability zone where instances will be created by default.
ebs_block_devices (pulumi.Input[list]) – Additional EBS block devices to attach to the instance. See Block Devices below for details.
ebs_optimized (pulumi.Input[bool]) – If true, the launched EC2 instance will be EBS-optimized.
ephemeral_block_devices (pulumi.Input[list]) – Customize Ephemeral (also known as “Instance Store”) volumes on the instance. See Block Devices below for details.
hostname (pulumi.Input[str]) – The instance’s host name.
install_updates_on_boot (pulumi.Input[bool]) – Controls where to install OS and package updates when the instance boots. Defaults to
true.instance_type (pulumi.Input[str]) – The type of instance to start
layer_ids (pulumi.Input[list]) – The ids of the layers the instance will belong to.
os (pulumi.Input[str]) – Name of operating system that will be installed.
private_dns (pulumi.Input[str]) – The private DNS name assigned to the instance. Can only be used inside the Amazon EC2, and only available if you’ve enabled DNS hostnames for your VPC
private_ip (pulumi.Input[str]) – The private IP address assigned to the instance
public_dns (pulumi.Input[str]) – The public DNS name assigned to the instance. For EC2-VPC, this is only available if you’ve enabled DNS hostnames for your VPC
public_ip (pulumi.Input[str]) – The public IP address assigned to the instance, if applicable.
root_block_devices (pulumi.Input[list]) – Customize details about the root block device of the instance. See Block Devices below for details.
root_device_type (pulumi.Input[str]) – Name of the type of root device instances will have by default. Can be either
"ebs"or"instance-store"security_group_ids (pulumi.Input[list]) – The associated security groups.
ssh_key_name (pulumi.Input[str]) – Name of the SSH keypair that instances will have by default.
stack_id (pulumi.Input[str]) – The id of the stack the instance will belong to.
state (pulumi.Input[str]) – The desired state of the instance. Can be either
"running"or"stopped".subnet_id (pulumi.Input[str]) – Subnet ID to attach to
tenancy (pulumi.Input[str]) – Instance tenancy to use. Can be one of
"default","dedicated"or"host"virtualization_type (pulumi.Input[str]) – Keyword to choose what virtualization mode created instances will use. Can be either
"paravirtual"or"hvm".
The ebs_block_devices object supports the following:
deleteOnTermination(pulumi.Input[bool])device_name(pulumi.Input[str])iops(pulumi.Input[float])snapshot_id(pulumi.Input[str])volume_size(pulumi.Input[float])volumeType(pulumi.Input[str])
The ephemeral_block_devices object supports the following:
device_name(pulumi.Input[str])virtualName(pulumi.Input[str])
The root_block_devices object supports the following:
deleteOnTermination(pulumi.Input[bool])iops(pulumi.Input[float])volume_size(pulumi.Input[float])volumeType(pulumi.Input[str])
agent_version: pulumi.Output[str] = None¶The AWS OpsWorks agent to install. Defaults to
"INHERIT".
ami_id: pulumi.Output[str] = None¶The AMI to use for the instance. If an AMI is specified,
osmust be"Custom".
architecture: pulumi.Output[str] = None¶Machine architecture for created instances. Can be either
"x86_64"(the default) or"i386"
auto_scaling_type: pulumi.Output[str] = None¶Creates load-based or time-based instances. If set, can be either:
"load"or"timer".
availability_zone: pulumi.Output[str] = None¶Name of the availability zone where instances will be created by default.
ebs_block_devices: pulumi.Output[list] = None¶Additional EBS block devices to attach to the instance. See Block Devices below for details.
deleteOnTermination(bool)device_name(str)iops(float)snapshot_id(str)volume_size(float)volumeType(str)
ebs_optimized: pulumi.Output[bool] = None¶If true, the launched EC2 instance will be EBS-optimized.
ec2_instance_id: pulumi.Output[str] = None¶EC2 instance ID
ephemeral_block_devices: pulumi.Output[list] = None¶Customize Ephemeral (also known as “Instance Store”) volumes on the instance. See Block Devices below for details.
device_name(str)virtualName(str)
hostname: pulumi.Output[str] = None¶The instance’s host name.
install_updates_on_boot: pulumi.Output[bool] = None¶Controls where to install OS and package updates when the instance boots. Defaults to
true.
instance_type: pulumi.Output[str] = None¶The type of instance to start
layer_ids: pulumi.Output[list] = None¶The ids of the layers the instance will belong to.
os: pulumi.Output[str] = None¶Name of operating system that will be installed.
private_dns: pulumi.Output[str] = None¶The private DNS name assigned to the instance. Can only be used inside the Amazon EC2, and only available if you’ve enabled DNS hostnames for your VPC
private_ip: pulumi.Output[str] = None¶The private IP address assigned to the instance
public_dns: pulumi.Output[str] = None¶The public DNS name assigned to the instance. For EC2-VPC, this is only available if you’ve enabled DNS hostnames for your VPC
public_ip: pulumi.Output[str] = None¶The public IP address assigned to the instance, if applicable.
root_block_devices: pulumi.Output[list] = None¶Customize details about the root block device of the instance. See Block Devices below for details.
deleteOnTermination(bool)iops(float)volume_size(float)volumeType(str)
root_device_type: pulumi.Output[str] = None¶Name of the type of root device instances will have by default. Can be either
"ebs"or"instance-store"
security_group_ids: pulumi.Output[list] = None¶The associated security groups.
ssh_key_name: pulumi.Output[str] = None¶Name of the SSH keypair that instances will have by default.
stack_id: pulumi.Output[str] = None¶The id of the stack the instance will belong to.
state: pulumi.Output[str] = None¶The desired state of the instance. Can be either
"running"or"stopped".
subnet_id: pulumi.Output[str] = None¶Subnet ID to attach to
tenancy: pulumi.Output[str] = None¶Instance tenancy to use. Can be one of
"default","dedicated"or"host"
virtualization_type: pulumi.Output[str] = None¶Keyword to choose what virtualization mode created instances will use. Can be either
"paravirtual"or"hvm".
- static
get(resource_name, id, opts=None, agent_version=None, ami_id=None, architecture=None, auto_scaling_type=None, availability_zone=None, created_at=None, delete_ebs=None, delete_eip=None, ebs_block_devices=None, ebs_optimized=None, ec2_instance_id=None, ecs_cluster_arn=None, elastic_ip=None, ephemeral_block_devices=None, hostname=None, infrastructure_class=None, install_updates_on_boot=None, instance_profile_arn=None, instance_type=None, last_service_error_id=None, layer_ids=None, os=None, platform=None, private_dns=None, private_ip=None, public_dns=None, public_ip=None, registered_by=None, reported_agent_version=None, reported_os_family=None, reported_os_name=None, reported_os_version=None, root_block_devices=None, root_device_type=None, root_device_volume_id=None, security_group_ids=None, ssh_host_dsa_key_fingerprint=None, ssh_host_rsa_key_fingerprint=None, ssh_key_name=None, stack_id=None, state=None, status=None, subnet_id=None, tenancy=None, virtualization_type=None)¶ Get an existing Instance resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
agent_version (pulumi.Input[str]) – The AWS OpsWorks agent to install. Defaults to
"INHERIT".ami_id (pulumi.Input[str]) – The AMI to use for the instance. If an AMI is specified,
osmust be"Custom".architecture (pulumi.Input[str]) – Machine architecture for created instances. Can be either
"x86_64"(the default) or"i386"auto_scaling_type (pulumi.Input[str]) – Creates load-based or time-based instances. If set, can be either:
"load"or"timer".availability_zone (pulumi.Input[str]) – Name of the availability zone where instances will be created by default.
ebs_block_devices (pulumi.Input[list]) – Additional EBS block devices to attach to the instance. See Block Devices below for details.
ebs_optimized (pulumi.Input[bool]) – If true, the launched EC2 instance will be EBS-optimized.
ec2_instance_id (pulumi.Input[str]) – EC2 instance ID
ephemeral_block_devices (pulumi.Input[list]) – Customize Ephemeral (also known as “Instance Store”) volumes on the instance. See Block Devices below for details.
hostname (pulumi.Input[str]) – The instance’s host name.
install_updates_on_boot (pulumi.Input[bool]) – Controls where to install OS and package updates when the instance boots. Defaults to
true.instance_type (pulumi.Input[str]) – The type of instance to start
layer_ids (pulumi.Input[list]) – The ids of the layers the instance will belong to.
os (pulumi.Input[str]) – Name of operating system that will be installed.
private_dns (pulumi.Input[str]) – The private DNS name assigned to the instance. Can only be used inside the Amazon EC2, and only available if you’ve enabled DNS hostnames for your VPC
private_ip (pulumi.Input[str]) – The private IP address assigned to the instance
public_dns (pulumi.Input[str]) – The public DNS name assigned to the instance. For EC2-VPC, this is only available if you’ve enabled DNS hostnames for your VPC
public_ip (pulumi.Input[str]) – The public IP address assigned to the instance, if applicable.
root_block_devices (pulumi.Input[list]) – Customize details about the root block device of the instance. See Block Devices below for details.
root_device_type (pulumi.Input[str]) – Name of the type of root device instances will have by default. Can be either
"ebs"or"instance-store"security_group_ids (pulumi.Input[list]) – The associated security groups.
ssh_key_name (pulumi.Input[str]) – Name of the SSH keypair that instances will have by default.
stack_id (pulumi.Input[str]) – The id of the stack the instance will belong to.
state (pulumi.Input[str]) – The desired state of the instance. Can be either
"running"or"stopped".subnet_id (pulumi.Input[str]) – Subnet ID to attach to
tenancy (pulumi.Input[str]) – Instance tenancy to use. Can be one of
"default","dedicated"or"host"virtualization_type (pulumi.Input[str]) – Keyword to choose what virtualization mode created instances will use. Can be either
"paravirtual"or"hvm".
The ebs_block_devices object supports the following:
deleteOnTermination(pulumi.Input[bool])device_name(pulumi.Input[str])iops(pulumi.Input[float])snapshot_id(pulumi.Input[str])volume_size(pulumi.Input[float])volumeType(pulumi.Input[str])
The ephemeral_block_devices object supports the following:
device_name(pulumi.Input[str])virtualName(pulumi.Input[str])
The root_block_devices object supports the following:
deleteOnTermination(pulumi.Input[bool])iops(pulumi.Input[float])volume_size(pulumi.Input[float])volumeType(pulumi.Input[str])
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_aws.opsworks.JavaAppLayer(resource_name, opts=None, app_server=None, app_server_version=None, auto_assign_elastic_ips=None, auto_assign_public_ips=None, auto_healing=None, custom_configure_recipes=None, custom_deploy_recipes=None, custom_instance_profile_arn=None, custom_json=None, custom_security_group_ids=None, custom_setup_recipes=None, custom_shutdown_recipes=None, custom_undeploy_recipes=None, drain_elb_on_shutdown=None, ebs_volumes=None, elastic_load_balancer=None, install_updates_on_boot=None, instance_shutdown_timeout=None, jvm_options=None, jvm_type=None, jvm_version=None, name=None, stack_id=None, system_packages=None, tags=None, use_ebs_optimized_instances=None, __props__=None, __name__=None, __opts__=None)¶ Provides an OpsWorks Java application layer resource.
import pulumi import pulumi_aws as aws app = aws.opsworks.JavaAppLayer("app", stack_id=aws_opsworks_stack["main"]["id"])
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
app_server (pulumi.Input[str]) – Keyword for the application container to use. Defaults to “tomcat”.
app_server_version (pulumi.Input[str]) – Version of the selected application container to use. Defaults to “7”.
auto_assign_elastic_ips (pulumi.Input[bool]) – Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips (pulumi.Input[bool]) – For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing (pulumi.Input[bool]) – Whether to enable auto-healing for the layer.
custom_instance_profile_arn (pulumi.Input[str]) – The ARN of an IAM profile that will be used for the layer’s instances.
custom_json (pulumi.Input[str]) – Custom JSON attributes to apply to the layer.
custom_security_group_ids (pulumi.Input[list]) – Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown (pulumi.Input[bool]) – Whether to enable Elastic Load Balancing connection draining.
ebs_volumes (pulumi.Input[list]) –
ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.elastic_load_balancer (pulumi.Input[str]) – Name of an Elastic Load Balancer to attach to this layer
install_updates_on_boot (pulumi.Input[bool]) – Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout (pulumi.Input[float]) – The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
jvm_options (pulumi.Input[str]) – Options to set for the JVM.
jvm_type (pulumi.Input[str]) – Keyword for the type of JVM to use. Defaults to
openjdk.jvm_version (pulumi.Input[str]) – Version of JVM to use. Defaults to “7”.
name (pulumi.Input[str]) – A human-readable name for the layer.
stack_id (pulumi.Input[str]) – The id of the stack the layer will belong to.
system_packages (pulumi.Input[list]) – Names of a set of system packages to install on the layer’s instances.
tags (pulumi.Input[dict]) – A map of tags to assign to the resource.
use_ebs_optimized_instances (pulumi.Input[bool]) – Whether to use EBS-optimized instances.
The ebs_volumes object supports the following:
encrypted(pulumi.Input[bool])iops(pulumi.Input[float]) - For PIOPS volumes, the IOPS per disk.mountPoint(pulumi.Input[str]) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(pulumi.Input[float]) - The number of disks to use for the EBS volume.raidLevel(pulumi.Input[str]) - The RAID level to use for the volume.size(pulumi.Input[float]) - The size of the volume in gigabytes.type(pulumi.Input[str]) - The type of volume to create. This may bestandard(the default),io1orgp2.
app_server: pulumi.Output[str] = None¶Keyword for the application container to use. Defaults to “tomcat”.
app_server_version: pulumi.Output[str] = None¶Version of the selected application container to use. Defaults to “7”.
arn: pulumi.Output[str] = None¶The Amazon Resource Name(ARN) of the layer.
auto_assign_elastic_ips: pulumi.Output[bool] = None¶Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips: pulumi.Output[bool] = None¶For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing: pulumi.Output[bool] = None¶Whether to enable auto-healing for the layer.
custom_instance_profile_arn: pulumi.Output[str] = None¶The ARN of an IAM profile that will be used for the layer’s instances.
custom_json: pulumi.Output[str] = None¶Custom JSON attributes to apply to the layer.
custom_security_group_ids: pulumi.Output[list] = None¶Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown: pulumi.Output[bool] = None¶Whether to enable Elastic Load Balancing connection draining.
ebs_volumes: pulumi.Output[list] = None¶ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.encrypted(bool)iops(float) - For PIOPS volumes, the IOPS per disk.mountPoint(str) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(float) - The number of disks to use for the EBS volume.raidLevel(str) - The RAID level to use for the volume.size(float) - The size of the volume in gigabytes.type(str) - The type of volume to create. This may bestandard(the default),io1orgp2.
elastic_load_balancer: pulumi.Output[str] = None¶Name of an Elastic Load Balancer to attach to this layer
install_updates_on_boot: pulumi.Output[bool] = None¶Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout: pulumi.Output[float] = None¶The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
jvm_options: pulumi.Output[str] = None¶Options to set for the JVM.
jvm_type: pulumi.Output[str] = None¶Keyword for the type of JVM to use. Defaults to
openjdk.
jvm_version: pulumi.Output[str] = None¶Version of JVM to use. Defaults to “7”.
name: pulumi.Output[str] = None¶A human-readable name for the layer.
stack_id: pulumi.Output[str] = None¶The id of the stack the layer will belong to.
system_packages: pulumi.Output[list] = None¶Names of a set of system packages to install on the layer’s instances.
A map of tags to assign to the resource.
use_ebs_optimized_instances: pulumi.Output[bool] = None¶Whether to use EBS-optimized instances.
- static
get(resource_name, id, opts=None, app_server=None, app_server_version=None, arn=None, auto_assign_elastic_ips=None, auto_assign_public_ips=None, auto_healing=None, custom_configure_recipes=None, custom_deploy_recipes=None, custom_instance_profile_arn=None, custom_json=None, custom_security_group_ids=None, custom_setup_recipes=None, custom_shutdown_recipes=None, custom_undeploy_recipes=None, drain_elb_on_shutdown=None, ebs_volumes=None, elastic_load_balancer=None, install_updates_on_boot=None, instance_shutdown_timeout=None, jvm_options=None, jvm_type=None, jvm_version=None, name=None, stack_id=None, system_packages=None, tags=None, use_ebs_optimized_instances=None)¶ Get an existing JavaAppLayer resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
app_server (pulumi.Input[str]) – Keyword for the application container to use. Defaults to “tomcat”.
app_server_version (pulumi.Input[str]) – Version of the selected application container to use. Defaults to “7”.
arn (pulumi.Input[str]) – The Amazon Resource Name(ARN) of the layer.
auto_assign_elastic_ips (pulumi.Input[bool]) – Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips (pulumi.Input[bool]) – For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing (pulumi.Input[bool]) – Whether to enable auto-healing for the layer.
custom_instance_profile_arn (pulumi.Input[str]) – The ARN of an IAM profile that will be used for the layer’s instances.
custom_json (pulumi.Input[str]) – Custom JSON attributes to apply to the layer.
custom_security_group_ids (pulumi.Input[list]) – Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown (pulumi.Input[bool]) – Whether to enable Elastic Load Balancing connection draining.
ebs_volumes (pulumi.Input[list]) –
ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.elastic_load_balancer (pulumi.Input[str]) – Name of an Elastic Load Balancer to attach to this layer
install_updates_on_boot (pulumi.Input[bool]) – Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout (pulumi.Input[float]) – The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
jvm_options (pulumi.Input[str]) – Options to set for the JVM.
jvm_type (pulumi.Input[str]) – Keyword for the type of JVM to use. Defaults to
openjdk.jvm_version (pulumi.Input[str]) – Version of JVM to use. Defaults to “7”.
name (pulumi.Input[str]) – A human-readable name for the layer.
stack_id (pulumi.Input[str]) – The id of the stack the layer will belong to.
system_packages (pulumi.Input[list]) – Names of a set of system packages to install on the layer’s instances.
tags (pulumi.Input[dict]) – A map of tags to assign to the resource.
use_ebs_optimized_instances (pulumi.Input[bool]) – Whether to use EBS-optimized instances.
The ebs_volumes object supports the following:
encrypted(pulumi.Input[bool])iops(pulumi.Input[float]) - For PIOPS volumes, the IOPS per disk.mountPoint(pulumi.Input[str]) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(pulumi.Input[float]) - The number of disks to use for the EBS volume.raidLevel(pulumi.Input[str]) - The RAID level to use for the volume.size(pulumi.Input[float]) - The size of the volume in gigabytes.type(pulumi.Input[str]) - The type of volume to create. This may bestandard(the default),io1orgp2.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_aws.opsworks.MemcachedLayer(resource_name, opts=None, allocated_memory=None, auto_assign_elastic_ips=None, auto_assign_public_ips=None, auto_healing=None, custom_configure_recipes=None, custom_deploy_recipes=None, custom_instance_profile_arn=None, custom_json=None, custom_security_group_ids=None, custom_setup_recipes=None, custom_shutdown_recipes=None, custom_undeploy_recipes=None, drain_elb_on_shutdown=None, ebs_volumes=None, elastic_load_balancer=None, install_updates_on_boot=None, instance_shutdown_timeout=None, name=None, stack_id=None, system_packages=None, tags=None, use_ebs_optimized_instances=None, __props__=None, __name__=None, __opts__=None)¶ Provides an OpsWorks memcached layer resource.
import pulumi import pulumi_aws as aws cache = aws.opsworks.MemcachedLayer("cache", stack_id=aws_opsworks_stack["main"]["id"])
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
allocated_memory (pulumi.Input[float]) – Amount of memory to allocate for the cache on each instance, in megabytes. Defaults to 512MB.
auto_assign_elastic_ips (pulumi.Input[bool]) – Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips (pulumi.Input[bool]) – For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing (pulumi.Input[bool]) – Whether to enable auto-healing for the layer.
custom_instance_profile_arn (pulumi.Input[str]) – The ARN of an IAM profile that will be used for the layer’s instances.
custom_json (pulumi.Input[str]) – Custom JSON attributes to apply to the layer.
custom_security_group_ids (pulumi.Input[list]) – Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown (pulumi.Input[bool]) – Whether to enable Elastic Load Balancing connection draining.
ebs_volumes (pulumi.Input[list]) –
ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.elastic_load_balancer (pulumi.Input[str]) – Name of an Elastic Load Balancer to attach to this layer
install_updates_on_boot (pulumi.Input[bool]) – Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout (pulumi.Input[float]) – The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
name (pulumi.Input[str]) – A human-readable name for the layer.
stack_id (pulumi.Input[str]) – The id of the stack the layer will belong to.
system_packages (pulumi.Input[list]) – Names of a set of system packages to install on the layer’s instances.
tags (pulumi.Input[dict]) – A map of tags to assign to the resource.
use_ebs_optimized_instances (pulumi.Input[bool]) – Whether to use EBS-optimized instances.
The ebs_volumes object supports the following:
encrypted(pulumi.Input[bool])iops(pulumi.Input[float]) - For PIOPS volumes, the IOPS per disk.mountPoint(pulumi.Input[str]) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(pulumi.Input[float]) - The number of disks to use for the EBS volume.raidLevel(pulumi.Input[str]) - The RAID level to use for the volume.size(pulumi.Input[float]) - The size of the volume in gigabytes.type(pulumi.Input[str]) - The type of volume to create. This may bestandard(the default),io1orgp2.
allocated_memory: pulumi.Output[float] = None¶Amount of memory to allocate for the cache on each instance, in megabytes. Defaults to 512MB.
arn: pulumi.Output[str] = None¶The Amazon Resource Name(ARN) of the layer.
auto_assign_elastic_ips: pulumi.Output[bool] = None¶Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips: pulumi.Output[bool] = None¶For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing: pulumi.Output[bool] = None¶Whether to enable auto-healing for the layer.
custom_instance_profile_arn: pulumi.Output[str] = None¶The ARN of an IAM profile that will be used for the layer’s instances.
custom_json: pulumi.Output[str] = None¶Custom JSON attributes to apply to the layer.
custom_security_group_ids: pulumi.Output[list] = None¶Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown: pulumi.Output[bool] = None¶Whether to enable Elastic Load Balancing connection draining.
ebs_volumes: pulumi.Output[list] = None¶ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.encrypted(bool)iops(float) - For PIOPS volumes, the IOPS per disk.mountPoint(str) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(float) - The number of disks to use for the EBS volume.raidLevel(str) - The RAID level to use for the volume.size(float) - The size of the volume in gigabytes.type(str) - The type of volume to create. This may bestandard(the default),io1orgp2.
elastic_load_balancer: pulumi.Output[str] = None¶Name of an Elastic Load Balancer to attach to this layer
install_updates_on_boot: pulumi.Output[bool] = None¶Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout: pulumi.Output[float] = None¶The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
name: pulumi.Output[str] = None¶A human-readable name for the layer.
stack_id: pulumi.Output[str] = None¶The id of the stack the layer will belong to.
system_packages: pulumi.Output[list] = None¶Names of a set of system packages to install on the layer’s instances.
A map of tags to assign to the resource.
use_ebs_optimized_instances: pulumi.Output[bool] = None¶Whether to use EBS-optimized instances.
- static
get(resource_name, id, opts=None, allocated_memory=None, arn=None, auto_assign_elastic_ips=None, auto_assign_public_ips=None, auto_healing=None, custom_configure_recipes=None, custom_deploy_recipes=None, custom_instance_profile_arn=None, custom_json=None, custom_security_group_ids=None, custom_setup_recipes=None, custom_shutdown_recipes=None, custom_undeploy_recipes=None, drain_elb_on_shutdown=None, ebs_volumes=None, elastic_load_balancer=None, install_updates_on_boot=None, instance_shutdown_timeout=None, name=None, stack_id=None, system_packages=None, tags=None, use_ebs_optimized_instances=None)¶ Get an existing MemcachedLayer resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
allocated_memory (pulumi.Input[float]) – Amount of memory to allocate for the cache on each instance, in megabytes. Defaults to 512MB.
arn (pulumi.Input[str]) – The Amazon Resource Name(ARN) of the layer.
auto_assign_elastic_ips (pulumi.Input[bool]) – Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips (pulumi.Input[bool]) – For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing (pulumi.Input[bool]) – Whether to enable auto-healing for the layer.
custom_instance_profile_arn (pulumi.Input[str]) – The ARN of an IAM profile that will be used for the layer’s instances.
custom_json (pulumi.Input[str]) – Custom JSON attributes to apply to the layer.
custom_security_group_ids (pulumi.Input[list]) – Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown (pulumi.Input[bool]) – Whether to enable Elastic Load Balancing connection draining.
ebs_volumes (pulumi.Input[list]) –
ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.elastic_load_balancer (pulumi.Input[str]) – Name of an Elastic Load Balancer to attach to this layer
install_updates_on_boot (pulumi.Input[bool]) – Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout (pulumi.Input[float]) – The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
name (pulumi.Input[str]) – A human-readable name for the layer.
stack_id (pulumi.Input[str]) – The id of the stack the layer will belong to.
system_packages (pulumi.Input[list]) – Names of a set of system packages to install on the layer’s instances.
tags (pulumi.Input[dict]) – A map of tags to assign to the resource.
use_ebs_optimized_instances (pulumi.Input[bool]) – Whether to use EBS-optimized instances.
The ebs_volumes object supports the following:
encrypted(pulumi.Input[bool])iops(pulumi.Input[float]) - For PIOPS volumes, the IOPS per disk.mountPoint(pulumi.Input[str]) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(pulumi.Input[float]) - The number of disks to use for the EBS volume.raidLevel(pulumi.Input[str]) - The RAID level to use for the volume.size(pulumi.Input[float]) - The size of the volume in gigabytes.type(pulumi.Input[str]) - The type of volume to create. This may bestandard(the default),io1orgp2.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_aws.opsworks.MysqlLayer(resource_name, opts=None, auto_assign_elastic_ips=None, auto_assign_public_ips=None, auto_healing=None, custom_configure_recipes=None, custom_deploy_recipes=None, custom_instance_profile_arn=None, custom_json=None, custom_security_group_ids=None, custom_setup_recipes=None, custom_shutdown_recipes=None, custom_undeploy_recipes=None, drain_elb_on_shutdown=None, ebs_volumes=None, elastic_load_balancer=None, install_updates_on_boot=None, instance_shutdown_timeout=None, name=None, root_password=None, root_password_on_all_instances=None, stack_id=None, system_packages=None, tags=None, use_ebs_optimized_instances=None, __props__=None, __name__=None, __opts__=None)¶ Provides an OpsWorks MySQL layer resource.
Note: All arguments including the root password will be stored in the raw state as plain-text.
import pulumi import pulumi_aws as aws db = aws.opsworks.MysqlLayer("db", stack_id=aws_opsworks_stack["main"]["id"])
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
auto_assign_elastic_ips (pulumi.Input[bool]) – Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips (pulumi.Input[bool]) – For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing (pulumi.Input[bool]) – Whether to enable auto-healing for the layer.
custom_instance_profile_arn (pulumi.Input[str]) – The ARN of an IAM profile that will be used for the layer’s instances.
custom_json (pulumi.Input[str]) – Custom JSON attributes to apply to the layer.
custom_security_group_ids (pulumi.Input[list]) – Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown (pulumi.Input[bool]) – Whether to enable Elastic Load Balancing connection draining.
ebs_volumes (pulumi.Input[list]) –
ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.elastic_load_balancer (pulumi.Input[str]) – Name of an Elastic Load Balancer to attach to this layer
install_updates_on_boot (pulumi.Input[bool]) – Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout (pulumi.Input[float]) – The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
name (pulumi.Input[str]) – A human-readable name for the layer.
root_password (pulumi.Input[str]) – Root password to use for MySQL.
root_password_on_all_instances (pulumi.Input[bool]) – Whether to set the root user password to all instances in the stack so they can access the instances in this layer.
stack_id (pulumi.Input[str]) – The id of the stack the layer will belong to.
system_packages (pulumi.Input[list]) – Names of a set of system packages to install on the layer’s instances.
tags (pulumi.Input[dict]) – A map of tags to assign to the resource.
use_ebs_optimized_instances (pulumi.Input[bool]) – Whether to use EBS-optimized instances.
The ebs_volumes object supports the following:
encrypted(pulumi.Input[bool])iops(pulumi.Input[float]) - For PIOPS volumes, the IOPS per disk.mountPoint(pulumi.Input[str]) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(pulumi.Input[float]) - The number of disks to use for the EBS volume.raidLevel(pulumi.Input[str]) - The RAID level to use for the volume.size(pulumi.Input[float]) - The size of the volume in gigabytes.type(pulumi.Input[str]) - The type of volume to create. This may bestandard(the default),io1orgp2.
arn: pulumi.Output[str] = None¶The Amazon Resource Name(ARN) of the layer.
auto_assign_elastic_ips: pulumi.Output[bool] = None¶Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips: pulumi.Output[bool] = None¶For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing: pulumi.Output[bool] = None¶Whether to enable auto-healing for the layer.
custom_instance_profile_arn: pulumi.Output[str] = None¶The ARN of an IAM profile that will be used for the layer’s instances.
custom_json: pulumi.Output[str] = None¶Custom JSON attributes to apply to the layer.
custom_security_group_ids: pulumi.Output[list] = None¶Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown: pulumi.Output[bool] = None¶Whether to enable Elastic Load Balancing connection draining.
ebs_volumes: pulumi.Output[list] = None¶ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.encrypted(bool)iops(float) - For PIOPS volumes, the IOPS per disk.mountPoint(str) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(float) - The number of disks to use for the EBS volume.raidLevel(str) - The RAID level to use for the volume.size(float) - The size of the volume in gigabytes.type(str) - The type of volume to create. This may bestandard(the default),io1orgp2.
elastic_load_balancer: pulumi.Output[str] = None¶Name of an Elastic Load Balancer to attach to this layer
install_updates_on_boot: pulumi.Output[bool] = None¶Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout: pulumi.Output[float] = None¶The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
name: pulumi.Output[str] = None¶A human-readable name for the layer.
root_password: pulumi.Output[str] = None¶Root password to use for MySQL.
root_password_on_all_instances: pulumi.Output[bool] = None¶Whether to set the root user password to all instances in the stack so they can access the instances in this layer.
stack_id: pulumi.Output[str] = None¶The id of the stack the layer will belong to.
system_packages: pulumi.Output[list] = None¶Names of a set of system packages to install on the layer’s instances.
A map of tags to assign to the resource.
use_ebs_optimized_instances: pulumi.Output[bool] = None¶Whether to use EBS-optimized instances.
- static
get(resource_name, id, opts=None, arn=None, auto_assign_elastic_ips=None, auto_assign_public_ips=None, auto_healing=None, custom_configure_recipes=None, custom_deploy_recipes=None, custom_instance_profile_arn=None, custom_json=None, custom_security_group_ids=None, custom_setup_recipes=None, custom_shutdown_recipes=None, custom_undeploy_recipes=None, drain_elb_on_shutdown=None, ebs_volumes=None, elastic_load_balancer=None, install_updates_on_boot=None, instance_shutdown_timeout=None, name=None, root_password=None, root_password_on_all_instances=None, stack_id=None, system_packages=None, tags=None, use_ebs_optimized_instances=None)¶ Get an existing MysqlLayer resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
arn (pulumi.Input[str]) – The Amazon Resource Name(ARN) of the layer.
auto_assign_elastic_ips (pulumi.Input[bool]) – Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips (pulumi.Input[bool]) – For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing (pulumi.Input[bool]) – Whether to enable auto-healing for the layer.
custom_instance_profile_arn (pulumi.Input[str]) – The ARN of an IAM profile that will be used for the layer’s instances.
custom_json (pulumi.Input[str]) – Custom JSON attributes to apply to the layer.
custom_security_group_ids (pulumi.Input[list]) – Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown (pulumi.Input[bool]) – Whether to enable Elastic Load Balancing connection draining.
ebs_volumes (pulumi.Input[list]) –
ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.elastic_load_balancer (pulumi.Input[str]) – Name of an Elastic Load Balancer to attach to this layer
install_updates_on_boot (pulumi.Input[bool]) – Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout (pulumi.Input[float]) – The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
name (pulumi.Input[str]) – A human-readable name for the layer.
root_password (pulumi.Input[str]) – Root password to use for MySQL.
root_password_on_all_instances (pulumi.Input[bool]) – Whether to set the root user password to all instances in the stack so they can access the instances in this layer.
stack_id (pulumi.Input[str]) – The id of the stack the layer will belong to.
system_packages (pulumi.Input[list]) – Names of a set of system packages to install on the layer’s instances.
tags (pulumi.Input[dict]) – A map of tags to assign to the resource.
use_ebs_optimized_instances (pulumi.Input[bool]) – Whether to use EBS-optimized instances.
The ebs_volumes object supports the following:
encrypted(pulumi.Input[bool])iops(pulumi.Input[float]) - For PIOPS volumes, the IOPS per disk.mountPoint(pulumi.Input[str]) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(pulumi.Input[float]) - The number of disks to use for the EBS volume.raidLevel(pulumi.Input[str]) - The RAID level to use for the volume.size(pulumi.Input[float]) - The size of the volume in gigabytes.type(pulumi.Input[str]) - The type of volume to create. This may bestandard(the default),io1orgp2.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_aws.opsworks.NodejsAppLayer(resource_name, opts=None, auto_assign_elastic_ips=None, auto_assign_public_ips=None, auto_healing=None, custom_configure_recipes=None, custom_deploy_recipes=None, custom_instance_profile_arn=None, custom_json=None, custom_security_group_ids=None, custom_setup_recipes=None, custom_shutdown_recipes=None, custom_undeploy_recipes=None, drain_elb_on_shutdown=None, ebs_volumes=None, elastic_load_balancer=None, install_updates_on_boot=None, instance_shutdown_timeout=None, name=None, nodejs_version=None, stack_id=None, system_packages=None, tags=None, use_ebs_optimized_instances=None, __props__=None, __name__=None, __opts__=None)¶ Provides an OpsWorks NodeJS application layer resource.
import pulumi import pulumi_aws as aws app = aws.opsworks.NodejsAppLayer("app", stack_id=aws_opsworks_stack["main"]["id"])
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
auto_assign_elastic_ips (pulumi.Input[bool]) – Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips (pulumi.Input[bool]) – For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing (pulumi.Input[bool]) – Whether to enable auto-healing for the layer.
custom_instance_profile_arn (pulumi.Input[str]) – The ARN of an IAM profile that will be used for the layer’s instances.
custom_json (pulumi.Input[str]) – Custom JSON attributes to apply to the layer.
custom_security_group_ids (pulumi.Input[list]) – Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown (pulumi.Input[bool]) – Whether to enable Elastic Load Balancing connection draining.
ebs_volumes (pulumi.Input[list]) –
ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.elastic_load_balancer (pulumi.Input[str]) – Name of an Elastic Load Balancer to attach to this layer
install_updates_on_boot (pulumi.Input[bool]) – Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout (pulumi.Input[float]) – The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
name (pulumi.Input[str]) – A human-readable name for the layer.
nodejs_version (pulumi.Input[str]) – The version of NodeJS to use. Defaults to “0.10.38”.
stack_id (pulumi.Input[str]) – The id of the stack the layer will belong to.
system_packages (pulumi.Input[list]) – Names of a set of system packages to install on the layer’s instances.
tags (pulumi.Input[dict]) – A map of tags to assign to the resource.
use_ebs_optimized_instances (pulumi.Input[bool]) – Whether to use EBS-optimized instances.
The ebs_volumes object supports the following:
encrypted(pulumi.Input[bool])iops(pulumi.Input[float]) - For PIOPS volumes, the IOPS per disk.mountPoint(pulumi.Input[str]) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(pulumi.Input[float]) - The number of disks to use for the EBS volume.raidLevel(pulumi.Input[str]) - The RAID level to use for the volume.size(pulumi.Input[float]) - The size of the volume in gigabytes.type(pulumi.Input[str]) - The type of volume to create. This may bestandard(the default),io1orgp2.
arn: pulumi.Output[str] = None¶The Amazon Resource Name(ARN) of the layer.
auto_assign_elastic_ips: pulumi.Output[bool] = None¶Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips: pulumi.Output[bool] = None¶For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing: pulumi.Output[bool] = None¶Whether to enable auto-healing for the layer.
custom_instance_profile_arn: pulumi.Output[str] = None¶The ARN of an IAM profile that will be used for the layer’s instances.
custom_json: pulumi.Output[str] = None¶Custom JSON attributes to apply to the layer.
custom_security_group_ids: pulumi.Output[list] = None¶Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown: pulumi.Output[bool] = None¶Whether to enable Elastic Load Balancing connection draining.
ebs_volumes: pulumi.Output[list] = None¶ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.encrypted(bool)iops(float) - For PIOPS volumes, the IOPS per disk.mountPoint(str) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(float) - The number of disks to use for the EBS volume.raidLevel(str) - The RAID level to use for the volume.size(float) - The size of the volume in gigabytes.type(str) - The type of volume to create. This may bestandard(the default),io1orgp2.
elastic_load_balancer: pulumi.Output[str] = None¶Name of an Elastic Load Balancer to attach to this layer
install_updates_on_boot: pulumi.Output[bool] = None¶Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout: pulumi.Output[float] = None¶The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
name: pulumi.Output[str] = None¶A human-readable name for the layer.
nodejs_version: pulumi.Output[str] = None¶The version of NodeJS to use. Defaults to “0.10.38”.
stack_id: pulumi.Output[str] = None¶The id of the stack the layer will belong to.
system_packages: pulumi.Output[list] = None¶Names of a set of system packages to install on the layer’s instances.
A map of tags to assign to the resource.
use_ebs_optimized_instances: pulumi.Output[bool] = None¶Whether to use EBS-optimized instances.
- static
get(resource_name, id, opts=None, arn=None, auto_assign_elastic_ips=None, auto_assign_public_ips=None, auto_healing=None, custom_configure_recipes=None, custom_deploy_recipes=None, custom_instance_profile_arn=None, custom_json=None, custom_security_group_ids=None, custom_setup_recipes=None, custom_shutdown_recipes=None, custom_undeploy_recipes=None, drain_elb_on_shutdown=None, ebs_volumes=None, elastic_load_balancer=None, install_updates_on_boot=None, instance_shutdown_timeout=None, name=None, nodejs_version=None, stack_id=None, system_packages=None, tags=None, use_ebs_optimized_instances=None)¶ Get an existing NodejsAppLayer resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
arn (pulumi.Input[str]) – The Amazon Resource Name(ARN) of the layer.
auto_assign_elastic_ips (pulumi.Input[bool]) – Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips (pulumi.Input[bool]) – For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing (pulumi.Input[bool]) – Whether to enable auto-healing for the layer.
custom_instance_profile_arn (pulumi.Input[str]) – The ARN of an IAM profile that will be used for the layer’s instances.
custom_json (pulumi.Input[str]) – Custom JSON attributes to apply to the layer.
custom_security_group_ids (pulumi.Input[list]) – Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown (pulumi.Input[bool]) – Whether to enable Elastic Load Balancing connection draining.
ebs_volumes (pulumi.Input[list]) –
ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.elastic_load_balancer (pulumi.Input[str]) – Name of an Elastic Load Balancer to attach to this layer
install_updates_on_boot (pulumi.Input[bool]) – Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout (pulumi.Input[float]) – The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
name (pulumi.Input[str]) – A human-readable name for the layer.
nodejs_version (pulumi.Input[str]) – The version of NodeJS to use. Defaults to “0.10.38”.
stack_id (pulumi.Input[str]) – The id of the stack the layer will belong to.
system_packages (pulumi.Input[list]) – Names of a set of system packages to install on the layer’s instances.
tags (pulumi.Input[dict]) – A map of tags to assign to the resource.
use_ebs_optimized_instances (pulumi.Input[bool]) – Whether to use EBS-optimized instances.
The ebs_volumes object supports the following:
encrypted(pulumi.Input[bool])iops(pulumi.Input[float]) - For PIOPS volumes, the IOPS per disk.mountPoint(pulumi.Input[str]) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(pulumi.Input[float]) - The number of disks to use for the EBS volume.raidLevel(pulumi.Input[str]) - The RAID level to use for the volume.size(pulumi.Input[float]) - The size of the volume in gigabytes.type(pulumi.Input[str]) - The type of volume to create. This may bestandard(the default),io1orgp2.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_aws.opsworks.Permission(resource_name, opts=None, allow_ssh=None, allow_sudo=None, level=None, stack_id=None, user_arn=None, __props__=None, __name__=None, __opts__=None)¶ Provides an OpsWorks permission resource.
import pulumi import pulumi_aws as aws my_stack_permission = aws.opsworks.Permission("myStackPermission", allow_ssh=True, allow_sudo=True, level="iam_only", stack_id=aws_opsworks_stack["stack"]["id"], user_arn=aws_iam_user["user"]["arn"])
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
allow_ssh (pulumi.Input[bool]) – Whether the user is allowed to use SSH to communicate with the instance
allow_sudo (pulumi.Input[bool]) – Whether the user is allowed to use sudo to elevate privileges
level (pulumi.Input[str]) – The users permission level. Mus be one of
deny,show,deploy,manage,iam_onlystack_id (pulumi.Input[str]) – The stack to set the permissions for
user_arn (pulumi.Input[str]) – The user’s IAM ARN to set permissions for
allow_ssh: pulumi.Output[bool] = None¶Whether the user is allowed to use SSH to communicate with the instance
allow_sudo: pulumi.Output[bool] = None¶Whether the user is allowed to use sudo to elevate privileges
level: pulumi.Output[str] = None¶The users permission level. Mus be one of
deny,show,deploy,manage,iam_only
stack_id: pulumi.Output[str] = None¶The stack to set the permissions for
user_arn: pulumi.Output[str] = None¶The user’s IAM ARN to set permissions for
- static
get(resource_name, id, opts=None, allow_ssh=None, allow_sudo=None, level=None, stack_id=None, user_arn=None)¶ Get an existing Permission resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
allow_ssh (pulumi.Input[bool]) – Whether the user is allowed to use SSH to communicate with the instance
allow_sudo (pulumi.Input[bool]) – Whether the user is allowed to use sudo to elevate privileges
level (pulumi.Input[str]) – The users permission level. Mus be one of
deny,show,deploy,manage,iam_onlystack_id (pulumi.Input[str]) – The stack to set the permissions for
user_arn (pulumi.Input[str]) – The user’s IAM ARN to set permissions for
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_aws.opsworks.PhpAppLayer(resource_name, opts=None, auto_assign_elastic_ips=None, auto_assign_public_ips=None, auto_healing=None, custom_configure_recipes=None, custom_deploy_recipes=None, custom_instance_profile_arn=None, custom_json=None, custom_security_group_ids=None, custom_setup_recipes=None, custom_shutdown_recipes=None, custom_undeploy_recipes=None, drain_elb_on_shutdown=None, ebs_volumes=None, elastic_load_balancer=None, install_updates_on_boot=None, instance_shutdown_timeout=None, name=None, stack_id=None, system_packages=None, tags=None, use_ebs_optimized_instances=None, __props__=None, __name__=None, __opts__=None)¶ Provides an OpsWorks PHP application layer resource.
import pulumi import pulumi_aws as aws app = aws.opsworks.PhpAppLayer("app", stack_id=aws_opsworks_stack["main"]["id"])
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
auto_assign_elastic_ips (pulumi.Input[bool]) – Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips (pulumi.Input[bool]) – For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing (pulumi.Input[bool]) – Whether to enable auto-healing for the layer.
custom_instance_profile_arn (pulumi.Input[str]) – The ARN of an IAM profile that will be used for the layer’s instances.
custom_json (pulumi.Input[str]) – Custom JSON attributes to apply to the layer.
custom_security_group_ids (pulumi.Input[list]) – Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown (pulumi.Input[bool]) – Whether to enable Elastic Load Balancing connection draining.
ebs_volumes (pulumi.Input[list]) –
ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.elastic_load_balancer (pulumi.Input[str]) – Name of an Elastic Load Balancer to attach to this layer
install_updates_on_boot (pulumi.Input[bool]) – Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout (pulumi.Input[float]) – The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
name (pulumi.Input[str]) – A human-readable name for the layer.
stack_id (pulumi.Input[str]) – The id of the stack the layer will belong to.
system_packages (pulumi.Input[list]) – Names of a set of system packages to install on the layer’s instances.
tags (pulumi.Input[dict]) – A map of tags to assign to the resource.
use_ebs_optimized_instances (pulumi.Input[bool]) – Whether to use EBS-optimized instances.
The ebs_volumes object supports the following:
encrypted(pulumi.Input[bool])iops(pulumi.Input[float]) - For PIOPS volumes, the IOPS per disk.mountPoint(pulumi.Input[str]) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(pulumi.Input[float]) - The number of disks to use for the EBS volume.raidLevel(pulumi.Input[str]) - The RAID level to use for the volume.size(pulumi.Input[float]) - The size of the volume in gigabytes.type(pulumi.Input[str]) - The type of volume to create. This may bestandard(the default),io1orgp2.
arn: pulumi.Output[str] = None¶The Amazon Resource Name(ARN) of the layer.
auto_assign_elastic_ips: pulumi.Output[bool] = None¶Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips: pulumi.Output[bool] = None¶For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing: pulumi.Output[bool] = None¶Whether to enable auto-healing for the layer.
custom_instance_profile_arn: pulumi.Output[str] = None¶The ARN of an IAM profile that will be used for the layer’s instances.
custom_json: pulumi.Output[str] = None¶Custom JSON attributes to apply to the layer.
custom_security_group_ids: pulumi.Output[list] = None¶Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown: pulumi.Output[bool] = None¶Whether to enable Elastic Load Balancing connection draining.
ebs_volumes: pulumi.Output[list] = None¶ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.encrypted(bool)iops(float) - For PIOPS volumes, the IOPS per disk.mountPoint(str) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(float) - The number of disks to use for the EBS volume.raidLevel(str) - The RAID level to use for the volume.size(float) - The size of the volume in gigabytes.type(str) - The type of volume to create. This may bestandard(the default),io1orgp2.
elastic_load_balancer: pulumi.Output[str] = None¶Name of an Elastic Load Balancer to attach to this layer
install_updates_on_boot: pulumi.Output[bool] = None¶Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout: pulumi.Output[float] = None¶The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
name: pulumi.Output[str] = None¶A human-readable name for the layer.
stack_id: pulumi.Output[str] = None¶The id of the stack the layer will belong to.
system_packages: pulumi.Output[list] = None¶Names of a set of system packages to install on the layer’s instances.
A map of tags to assign to the resource.
use_ebs_optimized_instances: pulumi.Output[bool] = None¶Whether to use EBS-optimized instances.
- static
get(resource_name, id, opts=None, arn=None, auto_assign_elastic_ips=None, auto_assign_public_ips=None, auto_healing=None, custom_configure_recipes=None, custom_deploy_recipes=None, custom_instance_profile_arn=None, custom_json=None, custom_security_group_ids=None, custom_setup_recipes=None, custom_shutdown_recipes=None, custom_undeploy_recipes=None, drain_elb_on_shutdown=None, ebs_volumes=None, elastic_load_balancer=None, install_updates_on_boot=None, instance_shutdown_timeout=None, name=None, stack_id=None, system_packages=None, tags=None, use_ebs_optimized_instances=None)¶ Get an existing PhpAppLayer resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
arn (pulumi.Input[str]) – The Amazon Resource Name(ARN) of the layer.
auto_assign_elastic_ips (pulumi.Input[bool]) – Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips (pulumi.Input[bool]) – For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing (pulumi.Input[bool]) – Whether to enable auto-healing for the layer.
custom_instance_profile_arn (pulumi.Input[str]) – The ARN of an IAM profile that will be used for the layer’s instances.
custom_json (pulumi.Input[str]) – Custom JSON attributes to apply to the layer.
custom_security_group_ids (pulumi.Input[list]) – Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown (pulumi.Input[bool]) – Whether to enable Elastic Load Balancing connection draining.
ebs_volumes (pulumi.Input[list]) –
ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.elastic_load_balancer (pulumi.Input[str]) – Name of an Elastic Load Balancer to attach to this layer
install_updates_on_boot (pulumi.Input[bool]) – Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout (pulumi.Input[float]) – The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
name (pulumi.Input[str]) – A human-readable name for the layer.
stack_id (pulumi.Input[str]) – The id of the stack the layer will belong to.
system_packages (pulumi.Input[list]) – Names of a set of system packages to install on the layer’s instances.
tags (pulumi.Input[dict]) – A map of tags to assign to the resource.
use_ebs_optimized_instances (pulumi.Input[bool]) – Whether to use EBS-optimized instances.
The ebs_volumes object supports the following:
encrypted(pulumi.Input[bool])iops(pulumi.Input[float]) - For PIOPS volumes, the IOPS per disk.mountPoint(pulumi.Input[str]) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(pulumi.Input[float]) - The number of disks to use for the EBS volume.raidLevel(pulumi.Input[str]) - The RAID level to use for the volume.size(pulumi.Input[float]) - The size of the volume in gigabytes.type(pulumi.Input[str]) - The type of volume to create. This may bestandard(the default),io1orgp2.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_aws.opsworks.RailsAppLayer(resource_name, opts=None, app_server=None, auto_assign_elastic_ips=None, auto_assign_public_ips=None, auto_healing=None, bundler_version=None, custom_configure_recipes=None, custom_deploy_recipes=None, custom_instance_profile_arn=None, custom_json=None, custom_security_group_ids=None, custom_setup_recipes=None, custom_shutdown_recipes=None, custom_undeploy_recipes=None, drain_elb_on_shutdown=None, ebs_volumes=None, elastic_load_balancer=None, install_updates_on_boot=None, instance_shutdown_timeout=None, manage_bundler=None, name=None, passenger_version=None, ruby_version=None, rubygems_version=None, stack_id=None, system_packages=None, tags=None, use_ebs_optimized_instances=None, __props__=None, __name__=None, __opts__=None)¶ Provides an OpsWorks Ruby on Rails application layer resource.
import pulumi import pulumi_aws as aws app = aws.opsworks.RailsAppLayer("app", stack_id=aws_opsworks_stack["main"]["id"])
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
app_server (pulumi.Input[str]) – Keyword for the app server to use. Defaults to “apache_passenger”.
auto_assign_elastic_ips (pulumi.Input[bool]) – Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips (pulumi.Input[bool]) – For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing (pulumi.Input[bool]) – Whether to enable auto-healing for the layer.
bundler_version (pulumi.Input[str]) – When OpsWorks is managing Bundler, which version to use. Defaults to “1.5.3”.
custom_instance_profile_arn (pulumi.Input[str]) – The ARN of an IAM profile that will be used for the layer’s instances.
custom_json (pulumi.Input[str]) – Custom JSON attributes to apply to the layer.
custom_security_group_ids (pulumi.Input[list]) – Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown (pulumi.Input[bool]) – Whether to enable Elastic Load Balancing connection draining.
ebs_volumes (pulumi.Input[list]) –
ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.elastic_load_balancer (pulumi.Input[str]) – Name of an Elastic Load Balancer to attach to this layer
install_updates_on_boot (pulumi.Input[bool]) – Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout (pulumi.Input[float]) – The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
manage_bundler (pulumi.Input[bool]) – Whether OpsWorks should manage bundler. On by default.
name (pulumi.Input[str]) – A human-readable name for the layer.
passenger_version (pulumi.Input[str]) – The version of Passenger to use. Defaults to “4.0.46”.
ruby_version (pulumi.Input[str]) – The version of Ruby to use. Defaults to “2.0.0”.
rubygems_version (pulumi.Input[str]) – The version of RubyGems to use. Defaults to “2.2.2”.
stack_id (pulumi.Input[str]) – The id of the stack the layer will belong to.
system_packages (pulumi.Input[list]) – Names of a set of system packages to install on the layer’s instances.
tags (pulumi.Input[dict]) – A map of tags to assign to the resource.
use_ebs_optimized_instances (pulumi.Input[bool]) – Whether to use EBS-optimized instances.
The ebs_volumes object supports the following:
encrypted(pulumi.Input[bool])iops(pulumi.Input[float]) - For PIOPS volumes, the IOPS per disk.mountPoint(pulumi.Input[str]) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(pulumi.Input[float]) - The number of disks to use for the EBS volume.raidLevel(pulumi.Input[str]) - The RAID level to use for the volume.size(pulumi.Input[float]) - The size of the volume in gigabytes.type(pulumi.Input[str]) - The type of volume to create. This may bestandard(the default),io1orgp2.
app_server: pulumi.Output[str] = None¶Keyword for the app server to use. Defaults to “apache_passenger”.
arn: pulumi.Output[str] = None¶The Amazon Resource Name(ARN) of the layer.
auto_assign_elastic_ips: pulumi.Output[bool] = None¶Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips: pulumi.Output[bool] = None¶For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing: pulumi.Output[bool] = None¶Whether to enable auto-healing for the layer.
bundler_version: pulumi.Output[str] = None¶When OpsWorks is managing Bundler, which version to use. Defaults to “1.5.3”.
custom_instance_profile_arn: pulumi.Output[str] = None¶The ARN of an IAM profile that will be used for the layer’s instances.
custom_json: pulumi.Output[str] = None¶Custom JSON attributes to apply to the layer.
custom_security_group_ids: pulumi.Output[list] = None¶Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown: pulumi.Output[bool] = None¶Whether to enable Elastic Load Balancing connection draining.
ebs_volumes: pulumi.Output[list] = None¶ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.encrypted(bool)iops(float) - For PIOPS volumes, the IOPS per disk.mountPoint(str) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(float) - The number of disks to use for the EBS volume.raidLevel(str) - The RAID level to use for the volume.size(float) - The size of the volume in gigabytes.type(str) - The type of volume to create. This may bestandard(the default),io1orgp2.
elastic_load_balancer: pulumi.Output[str] = None¶Name of an Elastic Load Balancer to attach to this layer
install_updates_on_boot: pulumi.Output[bool] = None¶Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout: pulumi.Output[float] = None¶The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
manage_bundler: pulumi.Output[bool] = None¶Whether OpsWorks should manage bundler. On by default.
name: pulumi.Output[str] = None¶A human-readable name for the layer.
passenger_version: pulumi.Output[str] = None¶The version of Passenger to use. Defaults to “4.0.46”.
ruby_version: pulumi.Output[str] = None¶The version of Ruby to use. Defaults to “2.0.0”.
rubygems_version: pulumi.Output[str] = None¶The version of RubyGems to use. Defaults to “2.2.2”.
stack_id: pulumi.Output[str] = None¶The id of the stack the layer will belong to.
system_packages: pulumi.Output[list] = None¶Names of a set of system packages to install on the layer’s instances.
A map of tags to assign to the resource.
use_ebs_optimized_instances: pulumi.Output[bool] = None¶Whether to use EBS-optimized instances.
- static
get(resource_name, id, opts=None, app_server=None, arn=None, auto_assign_elastic_ips=None, auto_assign_public_ips=None, auto_healing=None, bundler_version=None, custom_configure_recipes=None, custom_deploy_recipes=None, custom_instance_profile_arn=None, custom_json=None, custom_security_group_ids=None, custom_setup_recipes=None, custom_shutdown_recipes=None, custom_undeploy_recipes=None, drain_elb_on_shutdown=None, ebs_volumes=None, elastic_load_balancer=None, install_updates_on_boot=None, instance_shutdown_timeout=None, manage_bundler=None, name=None, passenger_version=None, ruby_version=None, rubygems_version=None, stack_id=None, system_packages=None, tags=None, use_ebs_optimized_instances=None)¶ Get an existing RailsAppLayer resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
app_server (pulumi.Input[str]) – Keyword for the app server to use. Defaults to “apache_passenger”.
arn (pulumi.Input[str]) – The Amazon Resource Name(ARN) of the layer.
auto_assign_elastic_ips (pulumi.Input[bool]) – Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips (pulumi.Input[bool]) – For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing (pulumi.Input[bool]) – Whether to enable auto-healing for the layer.
bundler_version (pulumi.Input[str]) – When OpsWorks is managing Bundler, which version to use. Defaults to “1.5.3”.
custom_instance_profile_arn (pulumi.Input[str]) – The ARN of an IAM profile that will be used for the layer’s instances.
custom_json (pulumi.Input[str]) – Custom JSON attributes to apply to the layer.
custom_security_group_ids (pulumi.Input[list]) – Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown (pulumi.Input[bool]) – Whether to enable Elastic Load Balancing connection draining.
ebs_volumes (pulumi.Input[list]) –
ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.elastic_load_balancer (pulumi.Input[str]) – Name of an Elastic Load Balancer to attach to this layer
install_updates_on_boot (pulumi.Input[bool]) – Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout (pulumi.Input[float]) – The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
manage_bundler (pulumi.Input[bool]) – Whether OpsWorks should manage bundler. On by default.
name (pulumi.Input[str]) – A human-readable name for the layer.
passenger_version (pulumi.Input[str]) – The version of Passenger to use. Defaults to “4.0.46”.
ruby_version (pulumi.Input[str]) – The version of Ruby to use. Defaults to “2.0.0”.
rubygems_version (pulumi.Input[str]) – The version of RubyGems to use. Defaults to “2.2.2”.
stack_id (pulumi.Input[str]) – The id of the stack the layer will belong to.
system_packages (pulumi.Input[list]) – Names of a set of system packages to install on the layer’s instances.
tags (pulumi.Input[dict]) – A map of tags to assign to the resource.
use_ebs_optimized_instances (pulumi.Input[bool]) – Whether to use EBS-optimized instances.
The ebs_volumes object supports the following:
encrypted(pulumi.Input[bool])iops(pulumi.Input[float]) - For PIOPS volumes, the IOPS per disk.mountPoint(pulumi.Input[str]) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(pulumi.Input[float]) - The number of disks to use for the EBS volume.raidLevel(pulumi.Input[str]) - The RAID level to use for the volume.size(pulumi.Input[float]) - The size of the volume in gigabytes.type(pulumi.Input[str]) - The type of volume to create. This may bestandard(the default),io1orgp2.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_aws.opsworks.RdsDbInstance(resource_name, opts=None, db_password=None, db_user=None, rds_db_instance_arn=None, stack_id=None, __props__=None, __name__=None, __opts__=None)¶ Provides an OpsWorks RDS DB Instance resource.
Note: All arguments including the username and password will be stored in the raw state as plain-text.
import pulumi import pulumi_aws as aws my_instance = aws.opsworks.RdsDbInstance("myInstance", db_password="somePass", db_user="someUser", rds_db_instance_arn=aws_db_instance["my_instance"]["arn"], stack_id=aws_opsworks_stack["my_stack"]["id"])
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
db_password (pulumi.Input[str]) – A db password
db_user (pulumi.Input[str]) – A db username
rds_db_instance_arn (pulumi.Input[str]) – The db instance to register for this stack. Changing this will force a new resource.
stack_id (pulumi.Input[str]) – The stack to register a db instance for. Changing this will force a new resource.
db_password: pulumi.Output[str] = None¶A db password
db_user: pulumi.Output[str] = None¶A db username
rds_db_instance_arn: pulumi.Output[str] = None¶The db instance to register for this stack. Changing this will force a new resource.
stack_id: pulumi.Output[str] = None¶The stack to register a db instance for. Changing this will force a new resource.
- static
get(resource_name, id, opts=None, db_password=None, db_user=None, rds_db_instance_arn=None, stack_id=None)¶ Get an existing RdsDbInstance resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
db_password (pulumi.Input[str]) – A db password
db_user (pulumi.Input[str]) – A db username
rds_db_instance_arn (pulumi.Input[str]) – The db instance to register for this stack. Changing this will force a new resource.
stack_id (pulumi.Input[str]) – The stack to register a db instance for. Changing this will force a new resource.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_aws.opsworks.Stack(resource_name, opts=None, agent_version=None, berkshelf_version=None, color=None, configuration_manager_name=None, configuration_manager_version=None, custom_cookbooks_sources=None, custom_json=None, default_availability_zone=None, default_instance_profile_arn=None, default_os=None, default_root_device_type=None, default_ssh_key_name=None, default_subnet_id=None, hostname_theme=None, manage_berkshelf=None, name=None, region=None, service_role_arn=None, tags=None, use_custom_cookbooks=None, use_opsworks_security_groups=None, vpc_id=None, __props__=None, __name__=None, __opts__=None)¶ Provides an OpsWorks stack resource.
import pulumi import pulumi_aws as aws main = aws.opsworks.Stack("main", custom_json="""{ "foobar": { "version": "1.0.0" } } """, default_instance_profile_arn=aws_iam_instance_profile["opsworks"]["arn"], region="us-west-1", service_role_arn=aws_iam_role["opsworks"]["arn"], tags={ "Name": "foobar-stack", })
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
agent_version (pulumi.Input[str]) – If set to
"LATEST", OpsWorks will automatically install the latest version.berkshelf_version (pulumi.Input[str]) – If
manage_berkshelfis enabled, the version of Berkshelf to use.color (pulumi.Input[str]) – Color to paint next to the stack’s resources in the OpsWorks console.
configuration_manager_name (pulumi.Input[str]) – Name of the configuration manager to use. Defaults to “Chef”.
configuration_manager_version (pulumi.Input[str]) – Version of the configuration manager to use. Defaults to “11.4”.
custom_cookbooks_sources (pulumi.Input[list]) – When
use_custom_cookbooksis set, provide this sub-object as described below.custom_json (pulumi.Input[str]) – Custom JSON attributes to apply to the entire stack.
default_availability_zone (pulumi.Input[str]) – Name of the availability zone where instances will be created by default. This is required unless you set
vpc_id.default_instance_profile_arn (pulumi.Input[str]) – The ARN of an IAM Instance Profile that created instances will have by default.
default_os (pulumi.Input[str]) – Name of OS that will be installed on instances by default.
default_root_device_type (pulumi.Input[str]) – Name of the type of root device instances will have by default.
default_ssh_key_name (pulumi.Input[str]) – Name of the SSH keypair that instances will have by default.
default_subnet_id (pulumi.Input[str]) – Id of the subnet in which instances will be created by default. Mandatory if
vpc_idis set, and forbidden if it isn’t.hostname_theme (pulumi.Input[str]) – Keyword representing the naming scheme that will be used for instance hostnames within this stack.
manage_berkshelf (pulumi.Input[bool]) – Boolean value controlling whether Opsworks will run Berkshelf for this stack.
name (pulumi.Input[str]) – The name of the stack.
region (pulumi.Input[str]) – The name of the region where the stack will exist.
service_role_arn (pulumi.Input[str]) – The ARN of an IAM role that the OpsWorks service will act as.
tags (pulumi.Input[dict]) – A map of tags to assign to the resource.
use_custom_cookbooks (pulumi.Input[bool]) – Boolean value controlling whether the custom cookbook settings are enabled.
use_opsworks_security_groups (pulumi.Input[bool]) – Boolean value controlling whether the standard OpsWorks security groups apply to created instances.
vpc_id (pulumi.Input[str]) – The id of the VPC that this stack belongs to.
The custom_cookbooks_sources object supports the following:
password(pulumi.Input[str]) - Password to use when authenticating to the source. The provider cannot perform drift detection of this configuration.revision(pulumi.Input[str]) - For sources that are version-aware, the revision to use.sshKey(pulumi.Input[str]) - SSH key to use when authenticating to the source. The provider cannot perform drift detection of this configuration.type(pulumi.Input[str]) - The type of source to use. For example, “archive”.url(pulumi.Input[str]) - The URL where the cookbooks resource can be found.username(pulumi.Input[str]) - Username to use when authenticating to the source.
agent_version: pulumi.Output[str] = None¶If set to
"LATEST", OpsWorks will automatically install the latest version.
berkshelf_version: pulumi.Output[str] = None¶If
manage_berkshelfis enabled, the version of Berkshelf to use.
color: pulumi.Output[str] = None¶Color to paint next to the stack’s resources in the OpsWorks console.
configuration_manager_name: pulumi.Output[str] = None¶Name of the configuration manager to use. Defaults to “Chef”.
configuration_manager_version: pulumi.Output[str] = None¶Version of the configuration manager to use. Defaults to “11.4”.
custom_cookbooks_sources: pulumi.Output[list] = None¶When
use_custom_cookbooksis set, provide this sub-object as described below.password(str) - Password to use when authenticating to the source. The provider cannot perform drift detection of this configuration.revision(str) - For sources that are version-aware, the revision to use.sshKey(str) - SSH key to use when authenticating to the source. The provider cannot perform drift detection of this configuration.type(str) - The type of source to use. For example, “archive”.url(str) - The URL where the cookbooks resource can be found.username(str) - Username to use when authenticating to the source.
custom_json: pulumi.Output[str] = None¶Custom JSON attributes to apply to the entire stack.
default_availability_zone: pulumi.Output[str] = None¶Name of the availability zone where instances will be created by default. This is required unless you set
vpc_id.
default_instance_profile_arn: pulumi.Output[str] = None¶The ARN of an IAM Instance Profile that created instances will have by default.
default_os: pulumi.Output[str] = None¶Name of OS that will be installed on instances by default.
default_root_device_type: pulumi.Output[str] = None¶Name of the type of root device instances will have by default.
default_ssh_key_name: pulumi.Output[str] = None¶Name of the SSH keypair that instances will have by default.
default_subnet_id: pulumi.Output[str] = None¶Id of the subnet in which instances will be created by default. Mandatory if
vpc_idis set, and forbidden if it isn’t.
hostname_theme: pulumi.Output[str] = None¶Keyword representing the naming scheme that will be used for instance hostnames within this stack.
manage_berkshelf: pulumi.Output[bool] = None¶Boolean value controlling whether Opsworks will run Berkshelf for this stack.
name: pulumi.Output[str] = None¶The name of the stack.
region: pulumi.Output[str] = None¶The name of the region where the stack will exist.
service_role_arn: pulumi.Output[str] = None¶The ARN of an IAM role that the OpsWorks service will act as.
A map of tags to assign to the resource.
use_custom_cookbooks: pulumi.Output[bool] = None¶Boolean value controlling whether the custom cookbook settings are enabled.
use_opsworks_security_groups: pulumi.Output[bool] = None¶Boolean value controlling whether the standard OpsWorks security groups apply to created instances.
vpc_id: pulumi.Output[str] = None¶The id of the VPC that this stack belongs to.
- static
get(resource_name, id, opts=None, agent_version=None, arn=None, berkshelf_version=None, color=None, configuration_manager_name=None, configuration_manager_version=None, custom_cookbooks_sources=None, custom_json=None, default_availability_zone=None, default_instance_profile_arn=None, default_os=None, default_root_device_type=None, default_ssh_key_name=None, default_subnet_id=None, hostname_theme=None, manage_berkshelf=None, name=None, region=None, service_role_arn=None, stack_endpoint=None, tags=None, use_custom_cookbooks=None, use_opsworks_security_groups=None, vpc_id=None)¶ Get an existing Stack resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
agent_version (pulumi.Input[str]) – If set to
"LATEST", OpsWorks will automatically install the latest version.berkshelf_version (pulumi.Input[str]) – If
manage_berkshelfis enabled, the version of Berkshelf to use.color (pulumi.Input[str]) – Color to paint next to the stack’s resources in the OpsWorks console.
configuration_manager_name (pulumi.Input[str]) – Name of the configuration manager to use. Defaults to “Chef”.
configuration_manager_version (pulumi.Input[str]) – Version of the configuration manager to use. Defaults to “11.4”.
custom_cookbooks_sources (pulumi.Input[list]) – When
use_custom_cookbooksis set, provide this sub-object as described below.custom_json (pulumi.Input[str]) – Custom JSON attributes to apply to the entire stack.
default_availability_zone (pulumi.Input[str]) – Name of the availability zone where instances will be created by default. This is required unless you set
vpc_id.default_instance_profile_arn (pulumi.Input[str]) – The ARN of an IAM Instance Profile that created instances will have by default.
default_os (pulumi.Input[str]) – Name of OS that will be installed on instances by default.
default_root_device_type (pulumi.Input[str]) – Name of the type of root device instances will have by default.
default_ssh_key_name (pulumi.Input[str]) – Name of the SSH keypair that instances will have by default.
default_subnet_id (pulumi.Input[str]) – Id of the subnet in which instances will be created by default. Mandatory if
vpc_idis set, and forbidden if it isn’t.hostname_theme (pulumi.Input[str]) – Keyword representing the naming scheme that will be used for instance hostnames within this stack.
manage_berkshelf (pulumi.Input[bool]) – Boolean value controlling whether Opsworks will run Berkshelf for this stack.
name (pulumi.Input[str]) – The name of the stack.
region (pulumi.Input[str]) – The name of the region where the stack will exist.
service_role_arn (pulumi.Input[str]) – The ARN of an IAM role that the OpsWorks service will act as.
tags (pulumi.Input[dict]) – A map of tags to assign to the resource.
use_custom_cookbooks (pulumi.Input[bool]) – Boolean value controlling whether the custom cookbook settings are enabled.
use_opsworks_security_groups (pulumi.Input[bool]) – Boolean value controlling whether the standard OpsWorks security groups apply to created instances.
vpc_id (pulumi.Input[str]) – The id of the VPC that this stack belongs to.
The custom_cookbooks_sources object supports the following:
password(pulumi.Input[str]) - Password to use when authenticating to the source. The provider cannot perform drift detection of this configuration.revision(pulumi.Input[str]) - For sources that are version-aware, the revision to use.sshKey(pulumi.Input[str]) - SSH key to use when authenticating to the source. The provider cannot perform drift detection of this configuration.type(pulumi.Input[str]) - The type of source to use. For example, “archive”.url(pulumi.Input[str]) - The URL where the cookbooks resource can be found.username(pulumi.Input[str]) - Username to use when authenticating to the source.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_aws.opsworks.StaticWebLayer(resource_name, opts=None, auto_assign_elastic_ips=None, auto_assign_public_ips=None, auto_healing=None, custom_configure_recipes=None, custom_deploy_recipes=None, custom_instance_profile_arn=None, custom_json=None, custom_security_group_ids=None, custom_setup_recipes=None, custom_shutdown_recipes=None, custom_undeploy_recipes=None, drain_elb_on_shutdown=None, ebs_volumes=None, elastic_load_balancer=None, install_updates_on_boot=None, instance_shutdown_timeout=None, name=None, stack_id=None, system_packages=None, tags=None, use_ebs_optimized_instances=None, __props__=None, __name__=None, __opts__=None)¶ Provides an OpsWorks static web server layer resource.
import pulumi import pulumi_aws as aws web = aws.opsworks.StaticWebLayer("web", stack_id=aws_opsworks_stack["main"]["id"])
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
auto_assign_elastic_ips (pulumi.Input[bool]) – Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips (pulumi.Input[bool]) – For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing (pulumi.Input[bool]) – Whether to enable auto-healing for the layer.
custom_instance_profile_arn (pulumi.Input[str]) – The ARN of an IAM profile that will be used for the layer’s instances.
custom_security_group_ids (pulumi.Input[list]) – Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown (pulumi.Input[bool]) – Whether to enable Elastic Load Balancing connection draining.
ebs_volumes (pulumi.Input[list]) –
ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.elastic_load_balancer (pulumi.Input[str]) – Name of an Elastic Load Balancer to attach to this layer
install_updates_on_boot (pulumi.Input[bool]) – Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout (pulumi.Input[float]) – The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
name (pulumi.Input[str]) – A human-readable name for the layer.
stack_id (pulumi.Input[str]) – The id of the stack the layer will belong to.
system_packages (pulumi.Input[list]) – Names of a set of system packages to install on the layer’s instances.
tags (pulumi.Input[dict]) – A map of tags to assign to the resource.
use_ebs_optimized_instances (pulumi.Input[bool]) – Whether to use EBS-optimized instances.
The ebs_volumes object supports the following:
encrypted(pulumi.Input[bool])iops(pulumi.Input[float]) - For PIOPS volumes, the IOPS per disk.mountPoint(pulumi.Input[str]) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(pulumi.Input[float]) - The number of disks to use for the EBS volume.raidLevel(pulumi.Input[str]) - The RAID level to use for the volume.size(pulumi.Input[float]) - The size of the volume in gigabytes.type(pulumi.Input[str]) - The type of volume to create. This may bestandard(the default),io1orgp2.
arn: pulumi.Output[str] = None¶The Amazon Resource Name(ARN) of the layer.
auto_assign_elastic_ips: pulumi.Output[bool] = None¶Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips: pulumi.Output[bool] = None¶For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing: pulumi.Output[bool] = None¶Whether to enable auto-healing for the layer.
custom_instance_profile_arn: pulumi.Output[str] = None¶The ARN of an IAM profile that will be used for the layer’s instances.
custom_security_group_ids: pulumi.Output[list] = None¶Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown: pulumi.Output[bool] = None¶Whether to enable Elastic Load Balancing connection draining.
ebs_volumes: pulumi.Output[list] = None¶ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.encrypted(bool)iops(float) - For PIOPS volumes, the IOPS per disk.mountPoint(str) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(float) - The number of disks to use for the EBS volume.raidLevel(str) - The RAID level to use for the volume.size(float) - The size of the volume in gigabytes.type(str) - The type of volume to create. This may bestandard(the default),io1orgp2.
elastic_load_balancer: pulumi.Output[str] = None¶Name of an Elastic Load Balancer to attach to this layer
install_updates_on_boot: pulumi.Output[bool] = None¶Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout: pulumi.Output[float] = None¶The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
name: pulumi.Output[str] = None¶A human-readable name for the layer.
stack_id: pulumi.Output[str] = None¶The id of the stack the layer will belong to.
system_packages: pulumi.Output[list] = None¶Names of a set of system packages to install on the layer’s instances.
A map of tags to assign to the resource.
use_ebs_optimized_instances: pulumi.Output[bool] = None¶Whether to use EBS-optimized instances.
- static
get(resource_name, id, opts=None, arn=None, auto_assign_elastic_ips=None, auto_assign_public_ips=None, auto_healing=None, custom_configure_recipes=None, custom_deploy_recipes=None, custom_instance_profile_arn=None, custom_json=None, custom_security_group_ids=None, custom_setup_recipes=None, custom_shutdown_recipes=None, custom_undeploy_recipes=None, drain_elb_on_shutdown=None, ebs_volumes=None, elastic_load_balancer=None, install_updates_on_boot=None, instance_shutdown_timeout=None, name=None, stack_id=None, system_packages=None, tags=None, use_ebs_optimized_instances=None)¶ Get an existing StaticWebLayer resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
arn (pulumi.Input[str]) – The Amazon Resource Name(ARN) of the layer.
auto_assign_elastic_ips (pulumi.Input[bool]) – Whether to automatically assign an elastic IP address to the layer’s instances.
auto_assign_public_ips (pulumi.Input[bool]) – For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
auto_healing (pulumi.Input[bool]) – Whether to enable auto-healing for the layer.
custom_instance_profile_arn (pulumi.Input[str]) – The ARN of an IAM profile that will be used for the layer’s instances.
custom_security_group_ids (pulumi.Input[list]) – Ids for a set of security groups to apply to the layer’s instances.
drain_elb_on_shutdown (pulumi.Input[bool]) – Whether to enable Elastic Load Balancing connection draining.
ebs_volumes (pulumi.Input[list]) –
ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.elastic_load_balancer (pulumi.Input[str]) – Name of an Elastic Load Balancer to attach to this layer
install_updates_on_boot (pulumi.Input[bool]) – Whether to install OS and package updates on each instance when it boots.
instance_shutdown_timeout (pulumi.Input[float]) – The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
name (pulumi.Input[str]) – A human-readable name for the layer.
stack_id (pulumi.Input[str]) – The id of the stack the layer will belong to.
system_packages (pulumi.Input[list]) – Names of a set of system packages to install on the layer’s instances.
tags (pulumi.Input[dict]) – A map of tags to assign to the resource.
use_ebs_optimized_instances (pulumi.Input[bool]) – Whether to use EBS-optimized instances.
The ebs_volumes object supports the following:
encrypted(pulumi.Input[bool])iops(pulumi.Input[float]) - For PIOPS volumes, the IOPS per disk.mountPoint(pulumi.Input[str]) - The path to mount the EBS volume on the layer’s instances.numberOfDisks(pulumi.Input[float]) - The number of disks to use for the EBS volume.raidLevel(pulumi.Input[str]) - The RAID level to use for the volume.size(pulumi.Input[float]) - The size of the volume in gigabytes.type(pulumi.Input[str]) - The type of volume to create. This may bestandard(the default),io1orgp2.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_aws.opsworks.UserProfile(resource_name, opts=None, allow_self_management=None, ssh_public_key=None, ssh_username=None, user_arn=None, __props__=None, __name__=None, __opts__=None)¶ Provides an OpsWorks User Profile resource.
import pulumi import pulumi_aws as aws my_profile = aws.opsworks.UserProfile("myProfile", ssh_username="my_user", user_arn=aws_iam_user["user"]["arn"])
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
allow_self_management (pulumi.Input[bool]) – Whether users can specify their own SSH public key through the My Settings page
ssh_public_key (pulumi.Input[str]) – The users public key
ssh_username (pulumi.Input[str]) – The ssh username, with witch this user wants to log in
user_arn (pulumi.Input[str]) – The user’s IAM ARN
allow_self_management: pulumi.Output[bool] = None¶Whether users can specify their own SSH public key through the My Settings page
ssh_public_key: pulumi.Output[str] = None¶The users public key
ssh_username: pulumi.Output[str] = None¶The ssh username, with witch this user wants to log in
user_arn: pulumi.Output[str] = None¶The user’s IAM ARN
- static
get(resource_name, id, opts=None, allow_self_management=None, ssh_public_key=None, ssh_username=None, user_arn=None)¶ Get an existing UserProfile resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
allow_self_management (pulumi.Input[bool]) – Whether users can specify their own SSH public key through the My Settings page
ssh_public_key (pulumi.Input[str]) – The users public key
ssh_username (pulumi.Input[str]) – The ssh username, with witch this user wants to log in
user_arn (pulumi.Input[str]) – The user’s IAM ARN
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str