dcl-ops-lib 6.1.2 → 6.2.0
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/createFargateTask.js +2 -2
- package/exposePublicService.js +2 -2
- package/package.json +1 -1
package/createFargateTask.js
CHANGED
|
@@ -289,8 +289,8 @@ function createFargateTask(serviceName, dockerImage, dockerListeningPort, enviro
|
|
|
289
289
|
}
|
|
290
290
|
exports.createFargateTask = createFargateTask;
|
|
291
291
|
function createInternalService(config) {
|
|
292
|
-
var _a, _b;
|
|
293
292
|
return __awaiter(this, void 0, void 0, function* () {
|
|
293
|
+
var _a, _b;
|
|
294
294
|
let { serviceName, cluster, securityGroups, ignoreServiceDiscovery, serviceDiscoveryPort, desiredCount, executionRole, taskRole, containerInfo, assignPublicIp, dependsOn, volumes, team, targetGroups, runtimePlatform } = config;
|
|
295
295
|
if (!desiredCount)
|
|
296
296
|
desiredCount = 1;
|
|
@@ -333,7 +333,7 @@ function createInternalService(config) {
|
|
|
333
333
|
}, { dependsOn: [logGroup] });
|
|
334
334
|
return new aws.ecs.Service((0, stack_1.getStackScopedName)(serviceName), {
|
|
335
335
|
cluster: yield getClusterInstance(cluster),
|
|
336
|
-
tags: { ServiceName: serviceName, StackId: (0, stack_1.getStackId)() },
|
|
336
|
+
tags: { ServiceName: serviceName, StackId: (0, stack_1.getStackId)(), Team: team },
|
|
337
337
|
networkConfiguration: {
|
|
338
338
|
subnets: yield (0, network_1.getPrivateSubnetIds)(),
|
|
339
339
|
securityGroups: securityGroups,
|
package/exposePublicService.js
CHANGED
|
@@ -38,8 +38,8 @@ function isUnProxiedDomain(v) {
|
|
|
38
38
|
* @param domain
|
|
39
39
|
* @param port
|
|
40
40
|
*/
|
|
41
|
-
function exposePublicService(
|
|
42
|
-
return __awaiter(this,
|
|
41
|
+
function exposePublicService(name_1, domain_2, port_1) {
|
|
42
|
+
return __awaiter(this, arguments, void 0, function* (name, domain, port, healthCheck = {}, vpcId, extraOptions, deregistrationDelay) {
|
|
43
43
|
const { alb, listener } = yield (0, alb_1.getAlb)();
|
|
44
44
|
const healthCheckValue = Object.assign({}, DEFAULT_HEALTHCHECK_VALUES, healthCheck);
|
|
45
45
|
const isProxied = isProxiedDomain(extraOptions);
|