Created
November 14, 2024 09:48
-
-
Save arianvp/bc2aae4315e9b8f17643d475abd8a41d to your computer and use it in GitHub Desktop.
Block IMDS globally, but allow per service.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let imds = ["169.254.169.254" "fd00:ec2::254"]; in | |
{ | |
systemd.slices."-".sliceConfig.IPAddressDeny = imds; | |
systemd.services.my-service-that-needs-aws.serviceConfig.IPAddressAllow = imds; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment