Creates ecs settings extension and uses it in every variant's settings model.
Creates settings-ecs RPM package that installs the extension binary.
Testing done:
Built aws-ecs-1 variant with the settings-ecs installed. Launched ec2 instance with the aws-ecs-1 variant ami. Connected with the instance via SSM to run apiclient commands.
Called apiclient to verify the settings-ecs worked as expected.
> cargo run proto1 set --setting-version v1 --value '{"cluster":"test-cluster","instance-attributes":{"attribute1":"value1","attribute2":"value2"},"allow-privileged-containers":true,"logging-drivers":["json-file","awslogs"],"loglevel":"info","enable-spot-instance-draining":true,"image-pull-behavior":"always","container-stop-timeout":"30s","task-cleanup-wait":"1h","metadata-service-rps":50,"metadata-service-burst":100,"reserved-memory":512,"image-cleanup-wait":"1h","image-cleanup-delete-per-cycle":2,"image-cleanup-enabled":true,"image-cleanup-age":"1h","backend-host":"ecs.us-east-1.amazonaws.com","awsvpc-block-imds":true,"enable-container-metadata":true}'
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.96s
Running `/Users/mgsharm/bottlerocket/bottlerocket/sources/target/debug/settings-extension-ecs proto1 set --setting-version v1 --value '{"cluster":"test-cluster","instance-attributes":{"attribute1":"value1","attribute2":"value2"},"allow-privileged-containers":true,"logging-drivers":["json-file","awslogs"],"loglevel":"info","enable-spot-instance-draining":true,"image-pull-behavior":"always","container-stop-timeout":"30s","task-cleanup-wait":"1h","metadata-service-rps":50,"metadata-service-burst":100,"reserved-memory":512,"image-cleanup-wait":"1h","image-cleanup-delete-per-cycle":2,"image-cleanup-enabled":true,"image-cleanup-age":"1h","backend-host":"ecs.us-east-1.amazonaws.com","awsvpc-block-imds":true,"enable-container-metadata":true}'`
Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.
Issue number:
Closes #3662
Description of changes:
ecs
settings extension and uses it in every variant's settings model.settings-ecs
RPM package that installs the extension binary.Testing done:
aws-ecs-1
variant with thesettings-ecs
installed. Launchedec2
instance with theaws-ecs-1
variant ami. Connected with the instance viaSSM
to runapiclient
commands.settings-ecs
worked as expected.Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.