@fjall/components-infrastructure 0.86.1 → 0.87.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/lib/app.d.ts +166 -6
- package/dist/lib/app.js +212 -20
- package/dist/lib/aspects/resourceInventory.d.ts +4 -4
- package/dist/lib/aspects/resourceInventory.js +3 -3
- package/dist/lib/config/aws/backupGlobalSettings.js +1 -2
- package/dist/lib/config/aws/identityCenter.js +1 -5
- package/dist/lib/config/aws/organisation.js +1 -4
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.js +7 -1
- package/dist/lib/patterns/aws/buildkite.js +3 -2
- package/dist/lib/patterns/aws/cdn.d.ts +164 -0
- package/dist/lib/patterns/aws/cdn.js +264 -0
- package/dist/lib/patterns/aws/compute.d.ts +278 -59
- package/dist/lib/patterns/aws/compute.js +384 -188
- package/dist/lib/patterns/aws/connections.d.ts +46 -0
- package/dist/lib/patterns/aws/connections.js +159 -0
- package/dist/lib/patterns/aws/database.d.ts +124 -11
- package/dist/lib/patterns/aws/database.js +188 -66
- package/dist/lib/patterns/aws/hostedZone.js +1 -1
- package/dist/lib/patterns/aws/index.d.ts +3 -0
- package/dist/lib/patterns/aws/index.js +4 -1
- package/dist/lib/patterns/aws/interfaces/compute.d.ts +121 -0
- package/dist/lib/patterns/aws/interfaces/compute.js +48 -0
- package/dist/lib/patterns/aws/interfaces/connector.d.ts +183 -0
- package/dist/lib/patterns/aws/interfaces/connector.js +117 -0
- package/dist/lib/patterns/aws/interfaces/database.d.ts +136 -0
- package/dist/lib/patterns/aws/interfaces/database.js +65 -0
- package/dist/lib/patterns/aws/interfaces/index.d.ts +12 -0
- package/dist/lib/patterns/aws/interfaces/index.js +49 -0
- package/dist/lib/patterns/aws/interfaces/messaging.d.ts +146 -0
- package/dist/lib/patterns/aws/interfaces/messaging.js +56 -0
- package/dist/lib/patterns/aws/interfaces/pattern.d.ts +403 -0
- package/dist/lib/patterns/aws/interfaces/pattern.js +36 -0
- package/dist/lib/patterns/aws/interfaces/storage.d.ts +136 -0
- package/dist/lib/patterns/aws/interfaces/storage.js +48 -0
- package/dist/lib/patterns/aws/messaging.d.ts +183 -0
- package/dist/lib/patterns/aws/messaging.js +239 -0
- package/dist/lib/patterns/aws/network.js +4 -4
- package/dist/lib/patterns/aws/pattern.d.ts +67 -0
- package/dist/lib/patterns/aws/pattern.js +69 -0
- package/dist/lib/patterns/aws/payload.d.ts +87 -0
- package/dist/lib/patterns/aws/payload.js +526 -0
- package/dist/lib/patterns/aws/storage.d.ts +127 -15
- package/dist/lib/patterns/aws/storage.js +234 -38
- package/dist/lib/resources/aws/backup/backupPlan.js +1 -6
- package/dist/lib/resources/aws/backup/backupVault.js +1 -2
- package/dist/lib/resources/aws/base/awsStack.d.ts +0 -2
- package/dist/lib/resources/aws/base/awsStack.js +1 -7
- package/dist/lib/resources/aws/cdn/cloudFront.d.ts +71 -0
- package/dist/lib/resources/aws/cdn/cloudFront.js +176 -0
- package/dist/lib/resources/aws/cdn/index.d.ts +1 -0
- package/dist/lib/resources/aws/cdn/index.js +18 -0
- package/dist/lib/resources/aws/compute/ec2.d.ts +5 -0
- package/dist/lib/resources/aws/compute/ec2.js +33 -6
- package/dist/lib/resources/aws/compute/ecs.d.ts +32 -25
- package/dist/lib/resources/aws/compute/ecs.js +31 -115
- package/dist/lib/resources/aws/compute/lambda.d.ts +94 -5
- package/dist/lib/resources/aws/compute/lambda.js +209 -32
- package/dist/lib/resources/aws/database/database.js +1 -1
- package/dist/lib/resources/aws/database/dynamodb.d.ts +70 -0
- package/dist/lib/resources/aws/database/dynamodb.js +181 -0
- package/dist/lib/resources/aws/database/index.d.ts +1 -0
- package/dist/lib/resources/aws/database/index.js +2 -1
- package/dist/lib/resources/aws/database/migrationLambda.d.ts +80 -0
- package/dist/lib/resources/aws/database/migrationLambda.js +119 -0
- package/dist/lib/resources/aws/database/rdsAurora.d.ts +15 -0
- package/dist/lib/resources/aws/database/rdsAurora.js +41 -18
- package/dist/lib/resources/aws/database/rdsAuroraGlobal.js +12 -8
- package/dist/lib/resources/aws/database/rdsInstance.js +2 -2
- package/dist/lib/resources/aws/index.d.ts +2 -0
- package/dist/lib/resources/aws/index.js +3 -1
- package/dist/lib/resources/aws/messaging/eventbridge.d.ts +28 -0
- package/dist/lib/resources/aws/messaging/eventbridge.js +53 -0
- package/dist/lib/resources/aws/messaging/index.d.ts +3 -0
- package/dist/lib/resources/aws/messaging/index.js +20 -0
- package/dist/lib/resources/aws/messaging/sns.d.ts +35 -0
- package/dist/lib/resources/aws/messaging/sns.js +70 -0
- package/dist/lib/resources/aws/messaging/sqs.d.ts +105 -0
- package/dist/lib/resources/aws/messaging/sqs.js +231 -0
- package/dist/lib/resources/aws/messaging/utils.d.ts +3 -0
- package/dist/lib/resources/aws/messaging/utils.js +7 -0
- package/dist/lib/resources/aws/networking/ipam.js +1 -2
- package/dist/lib/resources/aws/networking/ipamPool.js +3 -2
- package/dist/lib/resources/aws/networking/vpc.js +1 -2
- package/dist/lib/resources/aws/storage/ecr.js +8 -5
- package/dist/lib/resources/aws/storage/s3.js +1 -2
- package/dist/lib/resources/aws/utilities/awsCustomResource.js +1 -1
- package/dist/lib/resources/aws/utilities/customResource.js +1 -1
- package/dist/lib/utils/getConfig.js +3 -2
- package/dist/lib/utils/index.d.ts +1 -0
- package/dist/lib/utils/index.js +2 -1
- package/dist/lib/utils/manifestWriter.d.ts +174 -0
- package/dist/lib/utils/manifestWriter.js +233 -0
- package/dist/lib/utils/standardTagsAspect.js +1 -8
- package/dist/lib/utils/validationLogger.d.ts +34 -0
- package/dist/lib/utils/validationLogger.js +83 -0
- package/package.json +3 -3
- package/dist/lib/__tests__/setup.d.ts +0 -48
- package/dist/lib/__tests__/setup.js +0 -1
- package/dist/lib/patterns/aws/cicdRole.d.ts +0 -67
- package/dist/lib/patterns/aws/cicdRole.js +0 -68
- package/dist/lib/resources/aws/cicd/cicdRole.d.ts +0 -65
- package/dist/lib/resources/aws/cicd/cicdRole.js +0 -191
- package/dist/lib/resources/aws/compute/ecsFreeTier.d.ts +0 -75
- package/dist/lib/resources/aws/compute/ecsFreeTier.js +0 -1
- package/dist/lib/resources/aws/compute/ecsSpot.d.ts +0 -75
- package/dist/lib/resources/aws/compute/ecsSpot.js +0 -1
- package/dist/lib/resources/aws/compute/utilities/capacityProviderDrainWaiter.d.ts +0 -20
- package/dist/lib/resources/aws/compute/utilities/capacityProviderDrainWaiter.js +0 -1
- package/dist/lib/resources/aws/utilities/cfnOutput.d.ts +0 -5
- package/dist/lib/resources/aws/utilities/cfnOutput.js +0 -1
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { ContainerImage, type RepositoryImage } from "aws-cdk-lib/aws-ecs";
|
|
2
|
-
import { Connections, type IConnectable, type IVpc } from "aws-cdk-lib/aws-ec2";
|
|
3
|
-
import { Construct } from "constructs";
|
|
4
|
-
import { type StackBuilder } from "../base/awsStack";
|
|
5
|
-
import { type SecretValue } from "aws-cdk-lib";
|
|
6
|
-
import { type IManagedPolicy, PolicyDocument, Role } from "aws-cdk-lib/aws-iam";
|
|
7
|
-
import { Repository } from "aws-cdk-lib/aws-ecr";
|
|
8
|
-
import { type KeyValue } from "../../../types";
|
|
9
|
-
export declare enum ScalingType {
|
|
10
|
-
CPU = "ECSServiceAverageCPUUtilization",
|
|
11
|
-
MEMORY = "ECSServiceAverageMemoryUtilization"
|
|
12
|
-
}
|
|
13
|
-
export interface ContainerSecret {
|
|
14
|
-
[key: string]: SecretValue;
|
|
15
|
-
}
|
|
16
|
-
type Ec2ClusterProps = {
|
|
17
|
-
ecrRepository: Repository | RepositoryImage | string;
|
|
18
|
-
clusterName: string;
|
|
19
|
-
containerEntryPoint?: string[];
|
|
20
|
-
containerCommand?: string[];
|
|
21
|
-
containerEnvironment?: KeyValue;
|
|
22
|
-
containerSecrets?: ContainerSecret;
|
|
23
|
-
containerPort?: number;
|
|
24
|
-
cpu?: number;
|
|
25
|
-
parentDomain?: string;
|
|
26
|
-
desiredCount?: number;
|
|
27
|
-
healthCheckPath?: string;
|
|
28
|
-
listenerPort?: number;
|
|
29
|
-
memoryLimitMiB?: number;
|
|
30
|
-
publicLoadBalancer?: boolean;
|
|
31
|
-
scalingType?: ScalingType;
|
|
32
|
-
serviceName: string;
|
|
33
|
-
taskRoleInlinePolicies?: {
|
|
34
|
-
[name: string]: PolicyDocument;
|
|
35
|
-
};
|
|
36
|
-
taskRoleManagedPolicies?: IManagedPolicy[];
|
|
37
|
-
vpc?: IVpc;
|
|
38
|
-
};
|
|
39
|
-
export default class Ec2Cluster extends Construct implements IConnectable {
|
|
40
|
-
connections: Connections;
|
|
41
|
-
private cluster;
|
|
42
|
-
private autoScalingGroup;
|
|
43
|
-
private asgSecurityGroup;
|
|
44
|
-
private asgCapacityProvider;
|
|
45
|
-
private loadBalancer;
|
|
46
|
-
private loadBalancerSecurityGroup;
|
|
47
|
-
private loadBalancerListener;
|
|
48
|
-
private executionRole;
|
|
49
|
-
private taskDefinition;
|
|
50
|
-
private containerDefinition;
|
|
51
|
-
private ec2Service;
|
|
52
|
-
private scalingPolicy;
|
|
53
|
-
private hostedZone;
|
|
54
|
-
private certificate;
|
|
55
|
-
private aRecord;
|
|
56
|
-
private secrets;
|
|
57
|
-
constructor(scope: Construct, id: string, props: Ec2ClusterProps);
|
|
58
|
-
addCluster(props: Ec2ClusterProps): void;
|
|
59
|
-
addAutoScalingGroup(props: Ec2ClusterProps): void;
|
|
60
|
-
addSecrets(props: Ec2ClusterProps): void;
|
|
61
|
-
addExecutionRole(props: Ec2ClusterProps): void;
|
|
62
|
-
addTaskDefinition(props: Ec2ClusterProps): void;
|
|
63
|
-
addContainerDefinition(props: Ec2ClusterProps): void;
|
|
64
|
-
addEc2Service(props: Ec2ClusterProps): void;
|
|
65
|
-
addScalingPolicy(props: Ec2ClusterProps): void;
|
|
66
|
-
addLoadBalancer(props: Ec2ClusterProps): void;
|
|
67
|
-
removeAutoScalingGroup(): void;
|
|
68
|
-
addLoadBalancerListener(props: Ec2ClusterProps): void;
|
|
69
|
-
addHostedZone(props: Ec2ClusterProps): void;
|
|
70
|
-
registerLoadBalancerTargets(props: Ec2ClusterProps): void;
|
|
71
|
-
getImage(props: Ec2ClusterProps): ContainerImage;
|
|
72
|
-
getTaskRole(): Role | undefined;
|
|
73
|
-
static build(id: string, props: Ec2ClusterProps): (sb: StackBuilder) => Construct;
|
|
74
|
-
}
|
|
75
|
-
export {};
|