Skip to content

Commit ec76e31

Browse files
author
Tom Warnock
committed
iam role add
1 parent 3898a3a commit ec76e31

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ SHA1 := $$(git log -1 --pretty=%h)
88
CURRENT_BRANCH := $$(git symbolic-ref -q --short HEAD)
99
LATEST_TAG := ${REPO_NAME}:latest
1010
GIT_TAG := ${REPO_NAME}:${SHA1}
11-
VERSION := v0.2.9
11+
VERSION := v0.3.0
1212

1313
info: ## Show information about the current git state.
1414
@echo "Github Project: https://github.com/${REPO_NAME}\nCurrent Branch: ${CURRENT_BRANCH}\nSHA1: ${SHA1}\n"

cloudendure/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.2.9"
1+
__version__ = "0.3.0"

cloudendure/cloudendure.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import json
99
import os
1010
import pprint
11-
from datetime import datetime, timezone
1211
from typing import Any, Dict, List
1312

1413
import boto3
@@ -67,6 +66,7 @@ def __init__(
6766
if self.subnet_id and not self.private_ip_action:
6867
self.private_ip_action = "CREATE_NEW"
6968
self.security_group_id: str = self.config.active_config.get("security_group_id", "")
69+
self.iam_role: str = self.config.active_config.get("iam_role", "")
7070
self.target_machines: List[str] = self.config.active_config.get("machines", "").split(",")
7171
self.target_machines = [x.upper() for x in self.target_machines]
7272
self.target_instance_types: List[str] = self.config.active_config.get("instance_types", "").split(",")
@@ -448,8 +448,7 @@ def check_licenses(self) -> Dict[str, Any]:
448448
return response_dict
449449

450450
def get_machine_sync_details(self) -> List[Any]:
451-
"""Checks CloudEndure Project inventory and returns register machine's
452-
replication state.
451+
"""Checks CloudEndure Project inventory and returns register machine replication state.
453452
"""
454453
response_list: List[Any] = []
455454
print(f"INFO: Retreiving sync status for all machines in Project: ({self.project_name})")
@@ -557,6 +556,8 @@ def update_blueprint(self) -> bool:
557556
blueprint["privateIPAction"] = self.private_ip_action
558557
if self.security_group_id:
559558
blueprint["securityGroupIDs"] = [self.security_group_id]
559+
if self.iam_role:
560+
blueprint["iamRole"] = self.iam_role
560561

561562
instance_type = self.target_instances.get(_machine_name, "")
562563
if instance_type:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "cloudendure"
3-
version = "0.2.9"
3+
version = "0.3.0"
44
description = "Python wrapper and CLI for CloudEndure"
55
authors = ["Mark Beacom <[email protected]>", "Tom Warnock <[email protected]>"]
66
maintainers = ["Evan Lucchesi <[email protected]>", "Nick Selpa <[email protected]>"]

0 commit comments

Comments
 (0)