AWS OpsWorks Memcached Layer
This page shows how to write Terraform and CloudFormation for OpsWorks Memcached Layer and write them securely.
aws_opsworks_memcached_layer (Terraform)
The Memcached Layer in OpsWorks can be configured in Terraform with the resource name aws_opsworks_memcached_layer
. The following sections describe 1 example of how to use the resource and its parameters.
Example Usage from GitHub
resource "aws_opsworks_memcached_layer" "this" {
allocated_memory = var.allocated_memory
auto_assign_elastic_ips = var.auto_assign_elastic_ips
auto_assign_public_ips = var.auto_assign_public_ips
auto_healing = var.auto_healing
custom_configure_recipes = var.custom_configure_recipes
Parameters
-
allocated_memory
optional - number -
arn
optional computed - string -
auto_assign_elastic_ips
optional - bool -
auto_assign_public_ips
optional - bool -
auto_healing
optional - bool -
custom_configure_recipes
optional - list of string -
custom_deploy_recipes
optional - list of string -
custom_instance_profile_arn
optional - string -
custom_json
optional - string -
custom_security_group_ids
optional - set of string -
custom_setup_recipes
optional - list of string -
custom_shutdown_recipes
optional - list of string -
custom_undeploy_recipes
optional - list of string -
drain_elb_on_shutdown
optional - bool -
elastic_load_balancer
optional - string -
id
optional computed - string -
install_updates_on_boot
optional - bool -
instance_shutdown_timeout
optional - number -
name
optional - string -
stack_id
required - string -
system_packages
optional - set of string -
tags
optional - map from string to string -
use_ebs_optimized_instances
optional - bool -
ebs_volume
set block-
encrypted
optional - bool -
iops
optional - number -
mount_point
required - string -
number_of_disks
required - number -
raid_level
optional - string -
size
required - number -
type
optional - string
-
Explanation in Terraform Registry
Provides an OpsWorks memcached layer resource.
AWS::OpsWorks::Layer (CloudFormation)
The Layer in OpsWorks can be configured in CloudFormation with the resource name AWS::OpsWorks::Layer
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
-
Attributes
optional - Map -
AutoAssignElasticIps
required - Boolean -
AutoAssignPublicIps
required - Boolean -
CustomInstanceProfileArn
optional - String -
CustomJson
optional - Json -
CustomRecipes
optional - Recipes -
CustomSecurityGroupIds
optional - List -
EnableAutoHealing
required - Boolean -
InstallUpdatesOnBoot
optional - Boolean -
LifecycleEventConfiguration
optional - LifecycleEventConfiguration -
LoadBasedAutoScaling
optional - LoadBasedAutoScaling -
Name
required - String -
Packages
optional - List -
Shortname
required - String -
StackId
required - String -
Tags
optional - List of Tag -
Type
required - String -
UseEbsOptimizedInstances
optional - Boolean -
VolumeConfigurations
optional - List of VolumeConfiguration
Explanation in CloudFormation Registry
Creates a layer. For more information, see How to Create a Layer.
Note You should use CreateLayer for noncustom layer types such as PHP App Server only if the stack does not have an existing layer of that type. A stack can have at most one instance of each noncustom layer; if you attempt to create a second instance, CreateLayer fails. A stack can have an arbitrary number of custom layers, so you can call CreateLayer as many times as you like for that layer type. Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.
Frequently asked questions
What is AWS OpsWorks Memcached Layer?
AWS OpsWorks Memcached Layer is a resource for OpsWorks of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.
Where can I find the example code for the AWS OpsWorks Memcached Layer?
For Terraform, the niveklabs/aws source code example is useful. See the Terraform Example section for further details.