Skip to content

Commit

Permalink
Merge pull request #30 from srinivasreddych/feat/metadata
Browse files Browse the repository at this point in the history
Feat/metadata
  • Loading branch information
dgraeber authored Jul 25, 2023
2 parents db25d58 + d19ee09 commit cd9aaf6
Show file tree
Hide file tree
Showing 32 changed files with 25 additions and 556 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### **Changed**

- replaced exporting metadata with seedfarmer command

### **Removed**

=======
Expand Down
4 changes: 2 additions & 2 deletions modules/compute/aws-batch/deployspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ deploy:
- aws iam create-service-linked-role --aws-service-name spot.amazonaws.com || true
- aws iam create-service-linked-role --aws-service-name spotfleet.amazonaws.com || true
- cdk deploy --require-approval never --progress events --app "python app.py" --outputs-file ./cdk-exports.json
# Here we export some env vars
- python export_metadata.py
# Export metadata
- seedfarmer metadata convert -f cdk-exports.json || true
destroy:
phases:
install:
Expand Down
12 changes: 0 additions & 12 deletions modules/compute/aws-batch/export_metadata.py

This file was deleted.

46 changes: 0 additions & 46 deletions modules/compute/aws-batch/tests/test_exportdata.py

This file was deleted.

3 changes: 2 additions & 1 deletion modules/compute/emr-serverless/deployspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ deploy:
commands:
- aws iam create-service-linked-role --aws-service-name ops.emr-serverless.amazonaws.com || true
- cdk deploy --require-approval never --progress events --app "python app.py" --outputs-file ./cdk-exports.json
- python export_metadata.py
# Export metadata
- seedfarmer metadata convert -f cdk-exports.json || true
destroy:
phases:
install:
Expand Down
12 changes: 0 additions & 12 deletions modules/compute/emr-serverless/export_metadata.py

This file was deleted.

46 changes: 0 additions & 46 deletions modules/compute/emr-serverless/tests/test_exportdata.py

This file was deleted.

4 changes: 2 additions & 2 deletions modules/database/neptune/deployspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ deploy:
build:
commands:
- cdk deploy --require-approval never --progress events --app "python app.py" --outputs-file ./cdk-exports.json
# Here we export some env vars
- python export_metadata.py
# Export metadata
- seedfarmer metadata convert -f cdk-exports.json || true
destroy:
phases:
install:
Expand Down
12 changes: 0 additions & 12 deletions modules/database/neptune/export_metadata.py

This file was deleted.

46 changes: 0 additions & 46 deletions modules/database/neptune/tests/test_exportdata.py

This file was deleted.

3 changes: 2 additions & 1 deletion modules/dummy/blank/deployspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ deploy:
build:
commands:
- echo "This Dummy Module does nothing"
- python export_metadata.py
# Export metadata
# - seedfarmer metadata convert -f cdk-exports.json || true
destroy:
phases:
install:
Expand Down
16 changes: 0 additions & 16 deletions modules/dummy/blank/export_metadata.py

This file was deleted.

4 changes: 2 additions & 2 deletions modules/network/basic-cdk/deployspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ deploy:
commands:
# execute the CDK
- cdk deploy --require-approval never --progress events --app "python app.py" --outputs-file ./cdk-exports.json
# get the cdk.output and write to a file named <project>_MODULE_METADATA --- ALL UPPERCASE AND '_'
- python export_metadata.py
# Export metadata
- seedfarmer metadata convert -f cdk-exports.json || true
destroy:
phases:
install:
Expand Down
12 changes: 0 additions & 12 deletions modules/network/basic-cdk/export_metadata.py

This file was deleted.

46 changes: 0 additions & 46 deletions modules/network/basic-cdk/tests/test_exportdata.py

This file was deleted.

4 changes: 2 additions & 2 deletions modules/orchestration/mwaa/deployspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ deploy:
- echo "Moving ${REQUIREMENTS_FILE} to ${UNIQUE_REQUIREMENTS_FILE}"
- mv ${REQUIREMENTS_FILE} ${UNIQUE_REQUIREMENTS_FILE}
- cdk deploy --require-approval never --progress events --app "python app.py" --outputs-file ./cdk-exports.json
# # Here we export some env vars
- python export_metadata.py
# Export metadata
- seedfarmer metadata convert -f cdk-exports.json || true
destroy:
phases:
install:
Expand Down
12 changes: 0 additions & 12 deletions modules/orchestration/mwaa/export_metadata.py

This file was deleted.

1 change: 1 addition & 0 deletions modules/orchestration/mwaa/stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def __init__(
dag_bucket = aws_s3.Bucket(
self,
id="airflow-dag-bucket",
versioned=True,
bucket_name=f"{dep_mod}-{account}-{region}",
removal_policy=aws_cdk.RemovalPolicy.DESTROY,
encryption=aws_s3.BucketEncryption.KMS_MANAGED,
Expand Down
46 changes: 0 additions & 46 deletions modules/orchestration/mwaa/tests/test_exportdata.py

This file was deleted.

Loading

0 comments on commit cd9aaf6

Please sign in to comment.