Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev to main sync #126

Merged
merged 6 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
--s3-bucket ${ARTIFACTS_BUCKET} \
--region ${REGION} \
--output-template-file packaged.yaml
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: packaged.yaml
path: packaged.yaml
Expand All @@ -74,7 +74,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
- uses: aws-actions/setup-sam@v1
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: packaged.yaml

Expand All @@ -100,6 +100,7 @@ jobs:
CLOUDFORMATION_EXECUTION_ROLE: ${{ secrets.CLOUDFORMATION_EXECUTION_ROLE }}
PIPELINE_STACK_NAME: ${{ secrets.STACK_NAME }}
REGION: ${{ secrets.REGION }}
ENVIRONMENT: ${{ needs.prepare.outputs.branch_name == 'main' && 'PRODUCTION' || 'DEVELOPMENT' }}
run: |
sam deploy --stack-name ${PIPELINE_STACK_NAME} \
--no-confirm-changeset \
Expand All @@ -108,4 +109,5 @@ jobs:
--region ${REGION} \
--s3-bucket ${ARTIFACTS_BUCKET} \
--no-fail-on-empty-changeset \
--parameter-overrides Environment=${ENVIRONMENT} \
--role-arn ${CLOUDFORMATION_EXECUTION_ROLE}
56 changes: 47 additions & 9 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,53 @@ Globals:
Environment:
Variables:
ENVIRONMENT: PRODUCTION
CreateFeatureFlagFunction: FeatureFlagBackendProdLam-CreateFeatureFlagFunctio-YOVQpOQ9W4hR
CreateUserFeatureFlagFunction: FeatureFlagBackendProdLam-CreateUserFeatureFlagFun-Fi1GnCD4KsBu
GetFeatureFlagFunction: FeatureFlagBackendProdLambd-GetFeatureFlagFunction-I2kT1C4qt7i8
GetAllFeatureFlagFunction: FeatureFlagBackendProdLam-GetAllFeatureFlagFunctio-kqYPpHWHnPqR
UpdateFeatureFlagFunction: FeatureFlagBackendProdLam-UpdateFeatureFlagFunctio-9g8Vbr3cPzHL
UpdateUserFeatureFlagFunction: FeatureFlagBackendProdLam-UpdateUserFeatureFlagFun-FkeJ3SHwYIjo
GetUserFeatureFlagsFunction: FeatureFlagBackendProdLam-GetUserFeatureFlagsFunct-Qj4UvchESEwz
GetUserFeatureFlagFunction: FeatureFlagBackendProdLam-GetUserFeatureFlagFuncti-X4iHFCSiLo92
RateLimiterFunction: FeatureFlagBackendProdLambdas-RateLimiterFunction-WubbBb4Naxsm
CreateFeatureFlagFunction: !If
- IsProd
- FeatureFlagBackendProdLam-CreateFeatureFlagFunctio-YOVQpOQ9W4hR
- feature-flag-staging-CreateFeatureFlagFunction-jtNqeZdpSPyX
CreateUserFeatureFlagFunction: !If
- IsProd
- FeatureFlagBackendProdLam-CreateUserFeatureFlagFun-Fi1GnCD4KsBu
- feature-flag-staging-CreateUserFeatureFlagFunction-STwgvxNezRhr
GetFeatureFlagFunction: !If
- IsProd
- FeatureFlagBackendProdLambd-GetFeatureFlagFunction-I2kT1C4qt7i8
- feature-flag-staging-GetFeatureFlagFunction-0J7rpugeOdU5
GetAllFeatureFlagFunction: !If
- IsProd
- FeatureFlagBackendProdLam-GetAllFeatureFlagFunctio-kqYPpHWHnPqR
- feature-flag-staging-GetAllFeatureFlagFunction-ey71dNmZRDOp
UpdateFeatureFlagFunction: !If
- IsProd
- FeatureFlagBackendProdLam-UpdateFeatureFlagFunctio-9g8Vbr3cPzHL
- feature-flag-staging-UpdateFeatureFlagFunction-Kyi46ClC6I4R
UpdateUserFeatureFlagFunction: !If
- IsProd
- FeatureFlagBackendProdLam-UpdateUserFeatureFlagFun-FkeJ3SHwYIjo
- feature-flag-staging-UpdateUserFeatureFlagFunction-CmettJMSor9w
GetUserFeatureFlagsFunction: !If
- IsProd
- FeatureFlagBackendProdLam-GetUserFeatureFlagsFunct-Qj4UvchESEwz
- feature-flag-staging-GetUserFeatureFlagsFunction-ajPGREFbovxq
GetUserFeatureFlagFunction: !If
- IsProd
- FeatureFlagBackendProdLam-GetUserFeatureFlagFuncti-X4iHFCSiLo92
- feature-flag-staging-GetUserFeatureFlagFunction-8NRHy9k0q5M4
RateLimiterFunction: !If
- IsProd
- FeatureFlagBackendProdLambdas-RateLimiterFunction-WubbBb4Naxsm
- feature-flag-staging-RateLimiterFunction-7tOfBleMOdAA

Conditions:
IsProd: !Equals [!Ref Environment, "PRODUCTION"]

Parameters:
Environment:
Type: String
Default: "PRODUCTION"
AllowedValues:
- "PRODUCTION"
- "DEVELOPMENT"

Resources:
HealthCheckFunction:
Expand Down
Loading