Skip to content

Commit

Permalink
Merge pull request #109 from zeelax/feature/aws-sts
Browse files Browse the repository at this point in the history
Feature/aws sts
  • Loading branch information
BitProcessor authored Oct 5, 2023
2 parents 016ce14 + 0c40753 commit 2d4cdee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ Start by creating an API Token for your Atlassian account: https://id.atlassian.
]
}
```
Additional authentication methods such as [IAM Roles for Amazon EC2](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_switch-role-ec2.html) are supported. You many need to set additional environment variables to configure certain methods. See [boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html) for details.

### Docker
To use the container, replace all placeholders with the actual values and run the following command:

Expand Down
10 changes: 0 additions & 10 deletions backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,6 @@ def check_config(self):
if not "S3_BUCKET" in os.environ or not re.match(r"(?=^.{3,63}$)(?!^(\d+\.)+\d+$)(^(([a-z0-9]|[a-z0-9][a-z0-9\-]*[a-z0-9])\.)*([a-z0-9]|[a-z0-9][a-z0-9\-]*[a-z0-9])$)", os.environ['S3_BUCKET']):
print("Error: invalid S3_BUCKET")
config_errors=True

# Check AWS_ACCESS_KEY_ID
if not "AWS_ACCESS_KEY_ID" in os.environ or os.environ['AWS_ACCESS_KEY_ID'] == "":
print("Error: AWS_ACCESS_KEY_ID")
config_errors=True

# Check AWS_SECRET_ACCESS_KEY
if not "AWS_SECRET_ACCESS_KEY" in os.environ or os.environ['AWS_SECRET_ACCESS_KEY'] == "":
print("Error: AWS_SECRET_ACCESS_KEY")
config_errors=True

if not ("BACKUP_JIRA" in os.environ and
(os.environ['BACKUP_JIRA'] == "true" or os.environ['BACKUP_JIRA'] == "false")):
Expand Down

0 comments on commit 2d4cdee

Please sign in to comment.