1. Pior Bastida
  2. awstools

Commits

Pior Bastida  committed b918d81

fixed usage of deleted awstools.cfn() helper in script cfn

  • Participants
  • Parent commits 59c0020
  • Branches default

Comments (0)

Files changed (1)

File scripts/cfn

View file
  • Ignore whitespace
 
 from argh import arg, alias, ArghParser, confirm, wrap_errors
 from argh.exceptions import CommandError
+import boto
 from boto.exception import BotoServerError
 
 import awstools
         raise CommandError("Aborted")
 
     try:
-        stackid = awstools.cfn().create_stack(
+        stackid = boto.connect_cloudformation().create_stack(
             args.stack_name,
             template_body=template.body,
             parameters=parameters,
         raise CommandError("Aborted")
 
     try:
-        stackid = awstools.cfn().update_stack(
+        stackid = boto.connect_cloudformation().update_stack(
             args.stack_name,
             template_body=template.body,
             parameters=parameters,
         raise CommandError("Aborted")
 
     try:
-        res = awstools.cfn().delete_stack(stack.stack_name)
+        res = boto.connect_cloudformation().delete_stack(stack.stack_name)
     except BotoServerError as e:
         if e:
             raise CommandError("BotoServerError: " + e.error_message)