Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When do ./resources.py cf #27

Open
daumi opened this issue Aug 15, 2015 · 2 comments
Open

When do ./resources.py cf #27

daumi opened this issue Aug 15, 2015 · 2 comments

Comments

@daumi
Copy link

daumi commented Aug 15, 2015

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`
@pas256
Copy link
Member

pas256 commented Aug 15, 2015

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

Run it again after running

pip install troposphere --upgrade

@joshuadfranklin
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants