Skip to content
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Below is a summary of the actions in the library and a short description of what
| [`generate-tag`](generate-tag/action.yml) | Generate unique tags for artifacts | `node24` | ✅ |
| [`parse-config`](parse-config/action.yml) | Parse and validate a JSON configuration and expose the configuration as separate outputs | `node24` | ✅ |
| [`slack-notify`](slack-notify/action.yml) | Send notifications to Slack | `node24` | ❌ |
| [`trigger-deployment-pipeline`](trigger-deployment-pipeline/action.yml) | Trigger Liflig CDK Pipelines in AWS | `composite` | ✅ |
| [`trigger-deployment-pipeline`](trigger-deployment-pipeline/action.yml) | Trigger Liflig CDK Pipelines in AWS | `node24` | ✅ |
| [`upload-cdk-source`](upload-cdk-source/action.yml) | Create and upload an archive of the CDK source to use during deployment of a Liflig CDK Pipeline | `node24` | ✅ |
| [`upload-cloud-assembly`](upload-cloud-assembly/action.yml) | Create and upload an archive of the CDK source to use during deployment of a Liflig CDK Pipeline | `node24` | ✅ |
| [`upload-s3-artifact`](upload-s3-artifact/action.yml) | Upload a file or directory to S3 | `node24` | ✅ |
Expand Down
3 changes: 3 additions & 0 deletions bun.lock

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

8 changes: 8 additions & 0 deletions lib/aws.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { S3Client } from "@aws-sdk/client-s3"
import { PutParameterCommand, SSMClient } from "@aws-sdk/client-ssm"
import { Upload } from "@aws-sdk/lib-storage"

/**
Expand Down Expand Up @@ -40,3 +41,10 @@ export async function putObject(
const result = await upload.done()
return result.VersionId
}

/** Writes a plain string parameter, replacing any value already there. */
export async function putParameter(name: string, value: string): Promise<void> {
await new SSMClient({}).send(
new PutParameterCommand({ Name: name, Value: value, Type: "String", Overwrite: true }),
)
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
},
"dependencies": {
"@aws-sdk/client-s3": "3.1127.0",
"@aws-sdk/client-ssm": "3.1127.0",
"@aws-sdk/lib-storage": "3.1127.0",
"fflate": "0.8.3"
}
Expand Down
150 changes: 0 additions & 150 deletions trigger-deployment-pipeline/action.sh

This file was deleted.

23 changes: 2 additions & 21 deletions trigger-deployment-pipeline/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,5 @@ inputs:
Example for setting multiple artifacts parameters:
artifact-parameters: "devWebappS3Key=my-s3-artifact.zip devBackendEcrTag=my-tag"
runs:
using: "composite"
steps:
- name: trigger deployment
id: trigger
shell: bash --noprofile --norc -euo pipefail {0}
env:
INPUT_PIPELINES: ${{ inputs.pipelines }}
INPUT_AWS_S3_BUCKET_NAME: ${{ inputs.aws-s3-bucket-name }}
INPUT_TRIGGER_TYPE: ${{ inputs.trigger-type }}
INPUT_CDK_SOURCE_METADATA_FILE: ${{ inputs.cdk-source-metadata-file }}
INPUT_CLOUD_ASSEMBLY_METADATA_FILE: ${{ inputs.cloud-assembly-metadata-file }}
INPUT_ARTIFACT_PARAMETERS: ${{ inputs.artifact-parameters }}
GITHUB_TOKEN: ${{ inputs.github-token }}
run: |
bash $GITHUB_ACTION_PATH/action.sh \
--pipelines "$INPUT_PIPELINES" \
--aws-s3-bucket-name "$INPUT_AWS_S3_BUCKET_NAME" \
--trigger-type "$INPUT_TRIGGER_TYPE" \
--cdk-source-metadata-file "$INPUT_CDK_SOURCE_METADATA_FILE" \
--cloud-assembly-metadata-file "$INPUT_CLOUD_ASSEMBLY_METADATA_FILE" \
--artifact-parameters "$INPUT_ARTIFACT_PARAMETERS"
using: "node24"
main: "dist/index.mjs"
Loading
Loading