Skip to content

Instantly share code, notes, and snippets.

@urothis
Created July 6, 2021 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save urothis/197e866016a47d7f9db8e03596d2ef5b to your computer and use it in GitHub Desktop.
Save urothis/197e866016a47d7f9db8e03596d2ef5b to your computer and use it in GitHub Desktop.
ContainerDefinitions = JsonSerializer.Serialize(new[] {
new Dictionary<string, object?> {
{"name", "first"},
{"image", "***.dkr.ecr.us-west-2.amazonaws.com/***:***"},
{"environment", new[] { new Dictionary<string, object> {
{"PG_ENDPOINT", "potato"},
{"PG_READ_ENDPOINT", "banana"},
{"ASPNETCORE_URLS", "test"}
}}
},
{"cpu", 10},
{"memory", 512},
{"essential", true},
{"portMappings", new[] {new Dictionary<string, object?> {
{"containerPort", 5000},
{"hostPort", 80}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment