Skip to content

Commit

Permalink
Merge pull request #5994 from signalco-io/next
Browse files Browse the repository at this point in the history
Next
  • Loading branch information
AleksandarDev authored Sep 29, 2024
2 parents b6ef276 + c9846d2 commit 50b88c8
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 74 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/infra-deploy_reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,6 @@ jobs:
- name: "Checkout GitHub Action"
uses: actions/checkout@v4

- name: ✋ Set up mutex
id: mutex-setup
run: |
pushd ../discrete/Signalco.Discrete.Api.Mutex/node-cli
npm install
npm install -g
npx mutex wait signalcoinfra${{ inputs.command }}${{ inputs.project }}
popd
- name: ✨ Setup DotNet ${{ env.DOTNET_VERSION }} Environment
uses: actions/setup-dotnet@v4
with:
Expand Down Expand Up @@ -91,6 +82,15 @@ jobs:
- name: ⚒️ Build Infrastructure
run: pnpm build --filter=${{ inputs.packageName }}

- name: ✋ Set up mutex
id: mutex-setup
run: |
pushd ../discrete/Signalco.Discrete.Api.Mutex/node-cli
npm install
npm install -g
npx mutex wait signalcoinfra${{ inputs.command }}${{ inputs.project }}
popd
- name: ⚡ Preview Deploy Infrastructure
uses: pulumi/actions@v6
with:
Expand Down
19 changes: 0 additions & 19 deletions cloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,6 @@ Production API
- `pulumi config set azure-native:subscriptionId <subscriptionId>`
- stacks `next` and `production` already configured

##### **AWS (required for Deploy step)**

- [Get credentials](https://www.pulumi.com/registry/packages/aws/installation-configuration/#get-your-credentials)
- [Create IAM user with **Programmatic access**](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users_create.html#id_users_create_console)
- Retrieve aAccess Key ID and Access Key Secret after you created the user
- Configure shared
- on new stack
- `pulumi config set ses-region eu-west-1`
- stacks `next` and `production` are already configured
- Configure
- on new stack
- `$pulumi config set aws:accessKey <YOUR_ACCESS_KEY_ID> --secret`
- `$pulumi config set aws:secretKey <YOUR_ACCESS_KEY_ID> --secret`

##### **CloudFlare (required for Deploy step)**

- on new stack
Expand All @@ -101,11 +87,6 @@ Checkly (prereqesite for Pulumi)
Required secrets for GitHub actions are:

- `PULUMI_ACCESS_TOKEN` [Create a new Pulumi Access Token](https://app.pulumi.com/account/tokens) for Pulumi
- `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`
- To generate go to IAM > Users
- Create user to be used with pulumi
- Configure permissions: AmazonSESFullAccess, IAMFullAccess
- Configure security credentials: Access keys, create new one and retrieve key and secret specified above
- Azure access is configured as Pulumi secret via [Service Principal](https://www.pulumi.com/registry/packages/azure-native/installation-configuration/#option-2-use-a-service-principal)
- CloudFlare token is configured as Pulumi secret via [Provider](https://www.pulumi.com/registry/packages/cloudflare/installation-configuration/#configuring-the-provider)
- Checkly token is configured as Pulumi secret via [API Key](https://www.pulumi.com/registry/packages/checkly/installation-configuration/#configuring-credentials)
Expand Down
5 changes: 0 additions & 5 deletions infra/apps/cloud-primary/Pulumi.next.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
config:
aws:accessKey:
secure: AAABAE94zXYm+fQ/e5hqo/P5tYzk5exZVi+l3Yw9f/XG/01P1TlSoewLLaFDGOjJbqk+xQ==
aws:region: eu-west-1
aws:secretKey:
secure: AAABABKpWxWSYjEJOwiVSaWTjRHAc5BPAHI/MaMjPkiivOw2NdIywUUPPWMKG1ibmMV8jyQMVez8obSP4ST70tcQfRfpVogg
azure-native:clientId: 92261697-6976-49ea-a6b0-82e81b393e1c
azure-native:clientSecret:
secure: AAABAISoQTNqX9gB36S936iDwNKxq3rlJtdxJ6c7V5figvuX5ywpqtWx2ca2jxBikrNrB0gUaipqqYOHB9Q/Wdvgbn1HeYmA
Expand Down
5 changes: 0 additions & 5 deletions infra/apps/cloud-primary/Pulumi.production.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
config:
aws:accessKey:
secure: AAABAKku4YP8eoWXMJEDj18KHrOUTjGpzFvQcql+aiEzMrFaW/5BRCVrWc6aiNTycZRFNg==
aws:region: eu-west-1
aws:secretKey:
secure: AAABAPRhk7wWsd5gy9LJ+WdoNN75FTtTnTBznFAHeuGoPJXZVBmFTSUT4iG4ETc5/5FbhyRL8qYgQ8ecPoLoPf+hXDfQmt9v
azure-native:clientId: 92261697-6976-49ea-a6b0-82e81b393e1c
azure-native:clientSecret:
secure: AAABAC376ki/qNheVmoytBk5xXimZMUBj+UKT0AfjALOV9S+pxOC3dThUmPaaVzo/jFlaud33QU7oBEEuJcIQoWDQuYx0mkx
Expand Down
1 change: 0 additions & 1 deletion infra/apps/cloud-primary/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
},
"dependencies": {
"@checkly/pulumi": "1.1.4",
"@pulumi/aws": "6.54.0",
"@pulumi/azure-native": "2.63.0",
"@pulumi/cloudflare": "5.39.1",
"@pulumi/command": "1.0.1",
Expand Down
31 changes: 0 additions & 31 deletions infra/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
"webpack",
"xunit",
"mcr.microsoft.com/playwright",
"@pulumi/aws",
"@pulumi/azure-native",
"@pulumi/pulumi",
"@pulumi/cloudflare",
Expand Down
3 changes: 0 additions & 3 deletions station/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,6 @@ MigrationBackup/
.idea/**/dictionaries
.idea/**/shelf

# AWS User-specific
.idea/**/aws.xml

# Generated files
.idea/**/contentModel.xml

Expand Down

0 comments on commit 50b88c8

Please sign in to comment.