Skip to content

Commit

Permalink
permissions for ecs
Browse files Browse the repository at this point in the history
  • Loading branch information
prenagha committed Aug 21, 2024
1 parent e17119a commit 896dd19
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cdk/src/main/java/com/renaghan/todo/cdk/ServiceApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,25 @@ public static void main(String[] args) {
vars.put(
"SPRING_DATASOURCE_PASSWORD", databaseSecret.secretValueFromJson("password").toString());
/*
ActiveMqStack.ActiveMqOutputParameters activeMqOutputParameters =
ActiveMqStack.getOutputParametersFromParameterStore(parametersStack, applicationEnvironment);
vars.put("WEB_SOCKET_RELAY_ENDPOINT", activeMqOutputParameters.getStompEndpoint());
vars.put("WEB_SOCKET_RELAY_USERNAME", activeMqOutputParameters.getActiveMqUsername());
vars.put("WEB_SOCKET_RELAY_PASSWORD", activeMqOutputParameters.getActiveMqPassword());
*/

List<String> securityGroupIdsToGrantIngressFromEcs =
Arrays.asList(
databaseOutputParameters.getDatabaseSecurityGroupId()
// ,activeMqOutputParameters.getActiveMqSecurityGroupId()
);

Service.ServiceInputParameters inputParameters =
new Service.ServiceInputParameters(
new Service.DockerImageSource(
app.getContext("dockerRepositoryName"), app.getContext("dockerImageTag")),
securityGroupIdsToGrantIngressFromEcs,
vars)
.withCpu(512)
.withMemory(1024)
Expand Down

0 comments on commit 896dd19

Please sign in to comment.