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: 2 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ jobs:
shell: bash
lock-diff:
name: Lock diff
# package-diff posts PR comments via github.event.pull_request.comments_url (missing on push).
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 2 additions & 0 deletions dist/fargate.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ export type EnvFactory = (stack: StackConfig, defaults: Record<string, string>)
interface FargateServiceProps extends cdk.NestedStackProps {
subDomainIncludingDot?: string;
healthCheckPath?: string;
/** Container port the task listens on (ALB target group + task port mapping). Default 80. */
containerPort?: number;
/**
* Set to "default" to run a default image instead of
* using the provided repository
Expand Down
3 changes: 2 additions & 1 deletion dist/fargate.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const DEFAULT_VERSION = 'default';
class FargateService extends cdk.NestedStack {
constructor(scope, id, props) {
super(scope, id, props);
const { healthCheckPath = '/health-check', imageVersion = DEFAULT_VERSION, subDomainIncludingDot = '', stack, cluster, certificate, zone, repository, taskConfiguration, loadBalancerIngress = load_balancer_ingress_1.LOAD_BALANCER_INGRESS.Open, loadBalancerCidrs, } = props;
const { healthCheckPath = '/health-check', containerPort = 80, imageVersion = DEFAULT_VERSION, subDomainIncludingDot = '', stack, cluster, certificate, zone, repository, taskConfiguration, loadBalancerIngress = load_balancer_ingress_1.LOAD_BALANCER_INGRESS.Open, loadBalancerCidrs, } = props;
const allowedCidrs = (0, load_balancer_ingress_1.resolveLoadBalancerCidrs)(loadBalancerIngress, loadBalancerCidrs);
// Compile secrets into list of mapped ecs.Secrets
const secrets = {};
Expand Down Expand Up @@ -86,6 +86,7 @@ class FargateService extends cdk.NestedStack {
desiredCount,
taskImageOptions: {
image,
containerPort,
environment: taskConfiguration?.environment || {},
secrets,
},
Expand Down
4 changes: 4 additions & 0 deletions src/fargate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ export type EnvFactory = (
interface FargateServiceProps extends cdk.NestedStackProps {
subDomainIncludingDot?: string
healthCheckPath?: string
/** Container port the task listens on (ALB target group + task port mapping). Default 80. */
containerPort?: number
/**
* Set to "default" to run a default image instead of
* using the provided repository
Expand Down Expand Up @@ -88,6 +90,7 @@ export class FargateService extends cdk.NestedStack {

const {
healthCheckPath = '/health-check',
containerPort = 80,
imageVersion = DEFAULT_VERSION,
subDomainIncludingDot = '',
stack,
Expand Down Expand Up @@ -145,6 +148,7 @@ export class FargateService extends cdk.NestedStack {
desiredCount,
taskImageOptions: {
image,
containerPort,
environment: taskConfiguration?.environment || {},
secrets,
},
Expand Down
Loading