copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

Enable copilot env init command to configure ALB access logs

Open okram999 opened this issue 3 years ago • 4 comments

Ability to configure ALB access logs is only confined to defining the configuration in the environment's manifest file as specified here. Enabling the same feature in the copilot's CLI as an argument will also make things simple for customers that are scripting using co-pilot.

Something like this: copilot env init -n some_name --profile default --container-insights --http public --access_logs true

okram999 avatar Aug 22 '22 16:08 okram999

Hello @okram999 ! Is some_name always the same across the executions of the script? If you have an environment manifest at copilot/environments/test/manifest.yml in the workspace, copilot env init --name test will reuse that manifest. Does this work for your use case?

Lou1415926 avatar Aug 22 '22 16:08 Lou1415926

@Lou1415926 - Not in this case, although i understand what you are suggesting. Use case here is, i already have a project with the application and i want to spin up a whole new environment to deploy the service. The flow is like:

copilot env init --> env deploy --> svc deploy --name <svc_name> --env <env_name_deployed_earlier>

okram999 avatar Aug 22 '22 17:08 okram999

@okram999 Gotcha. Just a clarification question - do you push your entire copilot/ folder, which includes the .workspace file and the service manifests, into the runtime where the script execution happens?

Lou1415926 avatar Aug 22 '22 19:08 Lou1415926

(seems to be also related to "preview environments" https://github.com/aws/copilot-cli/issues/1159)

efekarakus avatar Sep 13 '22 23:09 efekarakus

This issue is stale because it has been open 60 days with no response activity, and is tagged with pending/question. Remove the stale label, add a comment, or this will be closed in 14 days.

github-actions[bot] avatar Nov 13 '22 00:11 github-actions[bot]