Browse through the questions and answers listed below or filter and sort to narrow down your results.
0
answers
0
votes
1
views
AWS-User-7714164
asked 2 days ago
1
answers
0
votes
6
views
poonsalai
asked 3 days ago
0
answers
0
votes
1
views
AWS-User-8225544
asked 4 days ago
0
answers
0
votes
1
views
AWS-User-1290211
asked 6 days ago
1
answers
0
votes
3
views
AWS-User-1206159
asked 10 days ago
0
answers
0
votes
0
views
BobD
asked 11 days ago
1
answers
0
votes
6
views
Navin GV
asked 14 days ago
1
answers
0
votes
3
views
AWS-User-3145276
asked 14 days ago
1
answers
0
votes
4
views
nbates
asked 19 days ago
0
answers
0
votes
1
views
DeveloperG
asked 19 days ago
1
answers
1
votes
2
views
Snorre Tunge
asked a month ago
0
answers
1
votes
3
views
Ben Iffland
asked a month ago
0
answers
0
votes
1
views
AWS-User-4222687
asked a month ago
1
answers
0
votes
3
views
Chief
asked a month ago
2
answers
1
votes
2
views
Ben Iffland
asked a month ago
2
answers
0
votes
7
views
AWS-User-Ali
asked a month ago
1
answers
0
votes
3
views
Ben Iffland
asked a month ago
0
answers
4
votes
12
views
E Gabrielli
asked 2 months ago
0
answers
1
votes
6
views
ben
asked 2 months ago
1
answers
0
votes
2
views
AWS-User-0431926
asked 2 months ago
0
answers
0
votes
1
views
Yahya
asked 2 months ago
0
answers
0
votes
2
views
AWS-User-3650895
asked 2 months ago
0
answers
0
votes
5
views
Ben Iffland
asked 2 months ago
0
answers
0
votes
5
views
Ben Iffland
asked 2 months ago
1
answers
0
votes
3
views
RabahO
asked 2 months ago
0
answers
1
votes
7
views
AWS-User-3714640
asked 2 months ago
0
answers
0
votes
1
views
Ben Iffland
asked 3 months ago
2
answers
0
votes
4
views
howster2022
asked 3 months ago
0
answers
0
votes
6
views
Sri
asked 3 months ago
1
answers
0
votes
2
views
Ben Iffland
asked 3 months ago
0
answers
0
votes
8
views
lraymond
asked 3 months ago
0
answers
0
votes
0
views
aws-lmayorga
asked 3 months ago
0
answers
0
votes
4
views
Ben Iffland
asked 3 months ago
1
answers
0
votes
2
views
Ben Iffland
asked 3 months ago
1
answers
0
votes
3
views
Ben Iffland
asked 3 months ago
1
answers
0
votes
4
views
AWS-User-7193378
asked 3 months ago
2
answers
0
votes
6
views
fagiani
asked 4 months ago
2
answers
0
votes
8
views
AWS-User-0380072
asked 4 months ago
0
answers
0
votes
6
views
jedrek
asked 4 months ago
1
answers
0
votes
8
views
BashScripter
asked 4 months ago
0
answers
0
votes
4
views
AWS-User-9698935
asked 4 months ago
0
answers
0
votes
10
views
AWS-User-5892877
asked 4 months ago
1
answers
0
votes
3
views
AWS-User-8027849
asked 4 months ago
1
answers
0
votes
4
views
maik
asked 4 months ago
1
answers
0
votes
6
views
AWS-User-4502449
asked 4 months ago
2
answers
0
votes
3
views
lraymond
asked 4 months ago
1
answers
0
votes
10
views
david
asked 4 months ago
0
answers
0
votes
3
views
jedrek
asked 4 months ago
1
answers
0
votes
4
views
edeastwood
asked 4 months ago
1
answers
0
votes
2
views
elbigbadmo
asked 4 months ago
0
answers
0
votes
1
views
AWS-User-0787474
asked 4 months ago
3
answers
0
votes
4
views
jedrek
asked 4 months ago
CodeDeploy: Script at specified location failed to close STDOUT
I am trying to add the following script to the `ApplicationStart` section of my CodeDeploy `appspec.yml`:
```
# collect_static_files.sh
#!/bin/bash
# source other files, change dir, activate python here
./manage.py collectstatic --noinput
```
With this file added deploys fail with
`Script at specified location: scripts/deploy/collect_static_files.sh failed to close STDOUT`
The log for the `ApplicationStart` event doesn't show anything other than the command output:
```
[stderr]You are using pip version 18.1, however version 21.3.1 is available.
[stderr]You should consider upgrading via the 'pip install --upgrade pip' command.
Script - scripts/deploy/collect_static_files.sh
[stdout]
[stdout]170 static files copied to '/var/www/mydir/static'.
```
I've tried turning off and redirecting output:
```
# ./manage.py collectstatic --noinput > /dev/null 2>&1
# ./manage.py collectstatic --noinput --verbosity 0
```
Neither of which clear the error and even if they did wouldn't really solve the problem as I would like the output added to the log.
There is something similar discussed on the [codedeploy agent GitHub](https://github.com/aws/aws-codedeploy-agent/issues/118) but for backgrounded commands.
Also did a search for closing `STDOUT` but that doesn't seem like something I should be doing manually. What am I missing?
Accepted AnswerAWS CodeDeploy
1
answers
0
votes
2
views
JP
asked 4 months ago
1
answers
0
votes
5
views
wildnez
asked 4 months ago
1
answers
0
votes
4
views
fdr
asked 5 months ago
3
answers
0
votes
16
views
Daniel Craigie
asked 5 months ago
1
answers
1
votes
15
views
Piyush
asked 5 months ago
2
answers
0
votes
17
views
ktsuda
asked 5 months ago
AWS CodeDeploy with Private Git Server
I have multiple AWS accounts, one account has a private Git Server (in a private subnet) hosted where my development team commits code. We have CodeDeploy in another AWS account and would like to know if it is possible connect to the private Git Server to CodeDeploy.
Accepted AnswerAWS CodeDeploy
1
answers
0
votes
6
views
Preenesh_N
asked a year ago
2
answers
0
votes
0
views
wonka
asked 2 years ago
1
answers
0
votes
2
views
Natalie_W
asked 2 years ago
1
answers
0
votes
4
views
AWS-User-9902598
asked 2 years ago
2
answers
0
votes
5
views
tonyengineering
asked 2 years ago
1
answers
0
votes
0
views
jon222
asked 3 years ago
2
answers
0
votes
1
views
door11333
asked 3 years ago
1
answers
0
votes
0
views
thedoole
asked 3 years ago
1
answers
0
votes
0
views
mguignard
asked 3 years ago
4
answers
0
votes
0
views
mcm
asked 4 years ago
BlockTraffic/AllowTraffic durations
Hello
I've been playing with using CodeDeploy to push our applications live, but it always takes ages doing the BlockTraffic and AllowTraffic steps.
The load balancer I'm using it with has connection draining set to 60s, but the block and allow traffic steps both take (reasonably reliably) 4m25 (265s) to complete which really does drag out the process.
Is there a way to modify this timeout that I've missed? Can I set the timeout on these steps in the appspec.yml even though these stages aren't documented for the hooks in that file?
Thanks
James
Edited by: jameseogden on Apr 28, 2017 5:59 AM
Accepted AnswerAWS CodeDeploy
7
answers
0
votes
1
views
jameseogden
asked 5 years ago
1
answers
0
votes
5
views
AWS-User-2528356
asked 5 years ago