Skip to content
This repository was archived by the owner on Aug 4, 2024. It is now read-only.
This repository was archived by the owner on Aug 4, 2024. It is now read-only.

cfn-bootstrap is no longer valid - easy_install is removed #2

@queglay

Description

@queglay

in Ubuntu 18 AMI's the code block given for Ubuntu doesn't appear to be valid anymore because easy_install has been removed from python-setuptools - https://launchpad.net/ubuntu/+source/python-setuptools/39.0.1-2

What would an alternative be to the provided code be for cfn-bootstrap?

"UserData": {
                    "Fn::Base64": { "Fn::Join":["", [
                      "#!/bin/bash -ex\n",
                      "apt-get update\n",
                      "apt-get -y install python-setuptools\n",
                      "mkdir aws-cfn-bootstrap-latest\n",
                      "curl https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz | tar xz -C aws-cfn-bootstrap-latest --strip-components 1\n",
                      "easy_install aws-cfn-bootstrap-latest\n",
                      "/usr/local/bin/cfn-init --stack ", { "Ref":"AWS::StackName" }, " --resource DomainMember2", " --configsets configinstance", " --region ", { "Ref": "AWS::Region" }, "\n",
                      "\n",
                      "apt-get update\n"
                    ]]}
                }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions