Skip to content

Commit

Permalink
SHIP IT! WE'RE READY!
Browse files Browse the repository at this point in the history
  • Loading branch information
infamousjoeg committed Sep 8, 2018
1 parent de45b25 commit 184f77f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# main.py

from __future__ import print_function
from pkg.func import getEC2InstanceIPv4
from pkg.func import setCloudflareARecord
import os

instance_name = os.getenv('EC2_INSTANCE_NAME')
cf_zone = os.getenv('CLOUDFLARE_ZONE_ID')
cf_dns = os.getenv('CLOUDFLARE_DNS_ID')
cf_email = os.getenv('CLOUDFLARE_EMAIL')
cf_api_key = os.getenv('CLOUDFLARE_API_KEY')
cf_arecord_name = os.getenv('CLOUDFLARE_A_NAME')

def handler(event, context):
instance_name = os.getenv('EC2_INSTANCE_NAME')
cf_zone = os.getenv('CLOUDFLARE_ZONE_ID')
cf_dns = os.getenv('CLOUDFLARE_DNS_ID')
cf_email = os.getenv('CLOUDFLARE_EMAIL')
cf_api_key = os.getenv('CLOUDFLARE_API_KEY')
cf_arecord_name = os.getenv('CLOUDFLARE_A_NAME')

# Get EC2 Instance Public IPv4 Address
public_ipv4_address = getEC2InstanceIPv4(instance_name)
# FOR TESTING:
Expand Down
Binary file added pkg/__init__.pyc
Binary file not shown.
Binary file added pkg/func.pyc
Binary file not shown.

0 comments on commit 184f77f

Please sign in to comment.