IQSS / dataverse-jenkins

configs and docs for running continuous integration for Dataverse in Jenkins
0 stars 1 forks source link

21 place aws config #22

Closed donsizemore closed 4 years ago

donsizemore commented 4 years ago

closes #21

pdurbin commented 4 years ago

And just be super careful not to check in your AWS credentials?!?

Instead I'm suggesting a different approach in https://github.com/OdumInstitute/dataverse-jenkins/pull/3

Also, I ran this:

ec2/ec2-create-instance.sh -r https://github.com/OdumInstitute/dataverse-jenkins.git -b 21_place_aws_config -g groupvars.yml

And things are looking good. The aws binary has been installed. However, I'm getting this error over and over and then the job fails:

You must specify a region. You can also configure your region by running "aws configure".

This is puzzling to me because it looks like the region has been configured:

[root@ip-172-31-27-25 ~]# cat /var/lib/jenkins/.aws/config 
[default]
region = us-east-1

Here's a screenshot of the error from http://ec2-54-144-84-196.compute-1.amazonaws.com:8080/job/IQSS-Dataverse-Develop/1/console with more context:

Screen Shot 2019-11-06 at 11 00 50 AM

donsizemore commented 4 years ago

@pdurbin weird. i thought secrets went in credentials, config went in config. i'll tell ansible to write the region setting to both.

pdurbin commented 4 years ago

@donsizemore no, I think you're doing it right. I don't understand why I'm seeing the behavior I'm seeing. 😕

pdurbin commented 4 years ago

@donsizemore I just merged this because it's probably close enough to what I need and I don't want it on the board while I'm out tomorrow. Thanks! I'll open a fresh issue if I'm still having trouble. 😄