Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
60d5d9ea
Commit
60d5d9ea
authored
May 05, 2016
by
Kevin Falcone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
This also needs to know about regions
parent
e2e2df4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
util/vpc-tools/asg_lifcycle_watcher.py
+5
-2
No files found.
util/vpc-tools/asg_lifcycle_watcher.py
View file @
60d5d9ea
...
...
@@ -18,6 +18,8 @@ It relies on some component applying the proper tags and performing pre-retireme
import
argparse
import
boto
import
boto.ec2
import
boto.sqs
import
json
import
subprocess
from
boto.sqs.message
import
RawMessage
...
...
@@ -50,9 +52,10 @@ class LifecycleHandler:
aws_bin
=
self
.
aws_bin
,
profile
=
self
.
profile
)
region
=
os
.
environ
.
get
(
'AWS_REGION'
,
'us-east-1'
)
self
.
dry_run
=
dry_run
self
.
ec2_con
=
boto
.
connect_ec2
(
)
self
.
sqs_con
=
boto
.
connect_sqs
(
)
self
.
ec2_con
=
boto
.
ec2
.
connect_to_region
(
region
)
self
.
sqs_con
=
boto
.
sqs
.
connect_to_region
(
region
)
def
process_lifecycle_messages
(
self
):
queue
=
self
.
sqs_con
.
get_queue
(
self
.
queue
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment