File tree Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ steps:
102
102
name : " :cloudformation: :linux: AMD64 Test"
103
103
command :
104
104
- git --version
105
- - goss validate --format documentation
105
+ - sudo goss validate --format documentation
106
106
timeout_in_minutes : 5
107
107
agents :
108
108
stack : " buildkite-aws-stack-test-linux-amd64-${BUILDKITE_BUILD_NUMBER}"
@@ -145,7 +145,7 @@ steps:
145
145
name : " :cloudformation: :linux: ARM64 Test"
146
146
command :
147
147
- git --version
148
- - goss validate --format documentation
148
+ - sudo goss validate --format documentation
149
149
timeout_in_minutes : 5
150
150
agents :
151
151
stack : " buildkite-aws-stack-test-linux-arm64-${BUILDKITE_BUILD_NUMBER}"
Original file line number Diff line number Diff line change @@ -100,6 +100,10 @@ cat <<EOF >config.json
100
100
{
101
101
"ParameterKey": "EnableInstanceStorage",
102
102
"ParameterValue": "${enable_instance_storage:- false} "
103
+ },
104
+ {
105
+ "ParameterKey": "BuildkiteAdditionalSudoPermissions",
106
+ "ParameterValue": "/usr/local/bin/goss"
103
107
}
104
108
]
105
109
EOF
Original file line number Diff line number Diff line change 14
14
/etc/systemd/system/refresh_authorized_keys.timer :
15
15
exists : true
16
16
17
+ /home/ec2-user/.ssh/authorized_keys :
18
+ exists : true
19
+ contains : ["!packer"]
20
+
21
+ /root/.ssh/authorized_keys :
22
+ exists : true
23
+ contains : ["!packer"]
24
+
17
25
/var/lib/buildkite-agent/builds :
18
26
filetype : directory
19
27
exists : true
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ source "amazon-ebs" "elastic-ci-stack-ami" {
56
56
region = var. region
57
57
source_ami = data. amazon-ami . al2023 . id
58
58
ssh_username = " ec2-user"
59
+ ssh_clear_authorized_keys = true
59
60
temporary_security_group_source_public_ip = true
60
61
61
62
run_tags = {
@@ -110,8 +111,4 @@ build {
110
111
provisioner "shell" {
111
112
script = " scripts/install-buildkite-utils.sh"
112
113
}
113
-
114
- provisioner "shell" {
115
- inline = [" rm /home/ec2-user/.ssh/authorized_keys" ]
116
- }
117
114
}
You can’t perform that action at this time.
0 commit comments