needroleshere 0.4.0

Yet another AWS IAM Roles Anywhere helper
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# /etc/systemd/system/needroleshere-bind@.service
[Unit]
PartOf=%i.service
Before=%i.service
After=needroleshere.socket needroleshere-dir.service
Wants=needroleshere.socket needroleshere-dir.service

[Service]
Type=oneshot
RemainAfterExit=yes
# example. adjust here for your use case
ExecStart=/usr/bin/needroleshere bind %i ... --role-arn arn:aws:iam::...:role/%i
ExecStop=/usr/bin/needroleshere unbind %i

Environment=RUNTIME_DIRECTORY=/run/needroleshere

[Install]
WantedBy=%i.service