Skip to content

Commit

Permalink
fix: ensure opensearch domain is created before param (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabelton authored Feb 29, 2024
1 parent def5180 commit a8366e7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dbt_copilot_helper/templates/addons/env/opensearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ Resources:

{{ addon_config.prefix }}OpenSearchEndpointConfigParam:
Type: AWS::SSM::Parameter
DependsOn:
- {{ addon_config.prefix }}OpenSearchDomain
Properties:
Name: !Sub "/copilot/${App}/${Env}/secrets/{{ addon_config.secret_name }}"
Type: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ Resources:

myOpensearchLongerOpenSearchEndpointConfigParam:
Type: AWS::SSM::Parameter
DependsOn:
- myOpensearchLongerOpenSearchDomain
Properties:
Name: !Sub "/copilot/${App}/${Env}/secrets/MY_OPENSEARCH_LONGER"
Type: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ Resources:

myOpensearchOpenSearchEndpointConfigParam:
Type: AWS::SSM::Parameter
DependsOn:
- myOpensearchOpenSearchDomain
Properties:
Name: !Sub "/copilot/${App}/${Env}/secrets/MY_OPENSEARCH"
Type: String
Expand Down

0 comments on commit a8366e7

Please sign in to comment.