aws_opsworks_memcached_layer

    0

    0

    lucycodes42

    Terraform snippets

    This code creates a new AWS OpsWorks Memcached layer. The layer is configured with the following resources:

    An AWS OpsWorks instance named myawsinstance

    A custom Memcached instance named mycache

    A defaultMemcachedConfig file

    A mycacheConfig.json file

    The following configurations are set in the mycacheConfig.json file:

    A list of permitted IP addresses for mycache

    A list of permitted TCP ports for mycache

    The following code creates the AWS OpsWorks Memcached layer and sets up the required resources:

    var mycache = new AWS.Cache.Memcached(); mycache.configure( { host: "127.0.0.1", port: 11211, user: "mycache", password: "mycache" } ); aws opsworks layer create --name mycache --resources mycache,myawsinstance,mycacheConfig.

    Shortcut: tf_aws_opsworks_memcached_layer

    resource "aws_opsworks_memcached_layer" "${MyAWSResource}" {
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.