Skip to content

Commit

Permalink
#1090 - fix pre-commit issues (#1442)
Browse files Browse the repository at this point in the history
  • Loading branch information
feoh authored Apr 5, 2023
1 parent 0f504a8 commit e9e7d48
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
secretsprovider: awskms://alias/infrastructure-secrets-production
encryptedkey: AQICAHg/+QzF9hGIaoayDitgnEVHEhuaANONVQQOnqpkIsol1gESTkymogFx44vfI8GgDVnMAAAAfjB8BgkqhkiG9w0BBwagbzBtAgEAMGgGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQMOEBGMo6fxI9utvJEAgEQgDvEhgY3IKeQ/Tao4skYoKildxCd5+x4WRnSTU86KZ5yc9v/VoGATjH7QE6NHKfHO0fWsEmD4mW8xCMIXg==
config:
aws:region: us-east-1
consul:address: https://consul-apps-production.odl.mit.edu
consul:scheme: https
micromasters:db_password:
secure: v1:KuHLKayQ3w6kG9M6:lh+RY/EMrc92HVO60psz6lD6DlYAmf5wWHdWr80yY/Q+L54KMGytwmTLi59lo8xfBZveqwS7S5MyT2U=
vault:address: https://vault-production.odl.mit.edu
vault_server:env_namespace: operations.production
21 changes: 0 additions & 21 deletions src/ol_infrastructure/applications/micromasters/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
- Create an IAM policy to grant access to S3 and other resources
"""

import json

import pulumi_vault as vault
from pulumi import Config, StackReference, export
Expand Down Expand Up @@ -51,25 +50,6 @@
),
tags=aws_config.tags,
acl="private",
policy=json.dumps(
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:ListAllMyBuckets",
"s3:ListBucket",
"s3:ListObjects",
"s3:PutObject",
"s3:DeleteObject",
],
"Resource": [f"arn:aws:s3:::{micromasters_bucket_name}/*"],
}
],
}
),
cors_rules=[{"allowedMethods": ["GET", "HEAD"], "allowedOrigins": ["*"]}],
)

Expand All @@ -91,7 +71,6 @@
},
{
"Effect": "Allow",
"Principal": "*",
"Action": [
"s3:ListBucket*",
"s3:PutObject",
Expand Down

0 comments on commit e9e7d48

Please sign in to comment.