Skip to content

When do ./resources.py cf #27

Open

Description

@daumi

Hi, Thanks for your good demo codes. When I do ./resource.py cf, there is as following error.

ERROR
Resource Subscription required in type AWS::SNS::Topic
Resource Subscription required in type AWS::SNS::Topic`

Activity

  1. pas256 commented on Aug 15, 2015

    @pas256
    Member

    That may mean the version of troposphere you have is an older one.

    Run it again after running

    pip install troposphere --upgrade
    
  2. joshuadfranklin commented on Nov 18, 2015

    @joshuadfranklin

    Hi,

    Looks like one problem is troposphere has a new major version, and requirements.txt lists the older: https://github.com/cloudtools/troposphere/releases
    It actually downgraded my troposphere to an old version that gave me the same error. (Also while I'm here, it would be nice to use botocore instead of boto since I've already got the AWS CLI installed with pip, and boto uses aws_security_token instead of aws_session_token.)

    $ cat requirements.txt
    awacs==0.5.0
    boto==2.38.0
    docopt==0.6.2
    PyYAML==3.11
    troposphere==0.7.2
    $ pip install -r requirements.txt
    Collecting awacs==0.5.0 (from -r requirements.txt (line 1))
    Downloading awacs-0.5.0.tar.gz
    Collecting boto==2.38.0 (from -r requirements.txt (line 2))
    Downloading boto-2.38.0-py2.py3-none-any.whl (1.3MB)
    100% |████████████████████████████████| 1.3MB 308kB/s
    Collecting docopt==0.6.2 (from -r requirements.txt (line 3))
    Downloading docopt-0.6.2.tar.gz
    Requirement already satisfied (use --upgrade to upgrade): PyYAML==3.11 in /Library/Python/2.7/site-packages (from -r requirements.txt (line 4))
    Collecting troposphere==0.7.2 (from -r requirements.txt (line 5))
    Downloading troposphere-0.7.2.tar.gz (45kB)
    100% |████████████████████████████████| 49kB 3.6MB/s Installing collected packages: awacs, boto, docopt, troposphere
    Running setup.py install for awacs
    Running setup.py install for docopt
    Found existing installation: troposphere 1.3.0
    Uninstalling troposphere-1.3.0:
    Successfully uninstalled troposphere-1.3.0
    Running setup.py install for troposphere
    Successfully installed awacs-0.5.0 boto-2.38.0 docopt-0.6.2 troposphere-0.7.2

    $ ./resources.py cf
    ERROR
    Resource Subscription required in type AWS::SNS::Topic
    Resource Subscription required in type AWS::SNS::Topic

    $ pip install troposphere -U
    Collecting troposphere
    Downloading troposphere-1.3.0.tar.gz (57kB)
    100% |████████████████████████████████| 57kB 1.3MB/s
    Installing collected packages: troposphere
    Found existing installation: troposphere 0.7.2
    Uninstalling troposphere-0.7.2:
    Successfully uninstalled troposphere-0.7.2
    Running setup.py install for troposphere
    Successfully installed troposphere-1.3.0

    $ ./resources.py cf
    {
    "AWSTemplateFormatVersion": "2010-09-09",
    "Description": "Lambda Chat AWS Resources" . . .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions