Urgent.News

What's breaking now, across thousands of outlets.

Tech

๐Ÿ” Use the AWS CLI Without Access Keys, and Prove a Policy Before You Attach It (Hands-on)

๐ŸŽค The interview question "How do you use the AWS CLI without an access key, and how do you know a policy works before you attach it?" The strong answer is two things you have actually run : sign the CLI in with aws login , and prove the policy in the IAM policy simulator first. 20 minutes. ๐Ÿ‘‡ ๐Ÿ‘‰ Flow: Sign in without a key โ†’ Write the policy โ†’ Prove it in the simulator โ†’ Store it, look, deleteโ€ฆ

The article explains how to use the AWS Command Line Interface (CLI) without access keys and validate policies before attaching them, using the AWS IAM Policy Simulator. The process involves signing in with the AWS CLI using your console sign-in, writing a least privileged policy for a specific S3 bucket, testing the policy in the simulator, and then cleaning up after the exercise.

The article emphasizes that AWS access keys should not be used for CLI sign-in, and instead, temporary credentials provided by the CLI should be used. Before attaching a policy, you should use the IAM Policy Simulator to test both the allowed and denied actions to ensure your policy works correctly.

Written by urgent.news from Dev.to's reporting โ€” not their text. Machine-written โ€” may contain errors; check the original before relying on it.

Read the original at dev.to โ†’

More in Tech

How I keep feedback pins on the right element when a website changes

When I built PinReview, a tool that lets clients click anywhere on a website and leave feedback, I thought the hard part would be screenshots. It wasn't.

  • Developed tool for clients to leave feedback on specific website elements.
  • Stored element's unique identifier, like ID or test attributes, to track pin.
  • Stored pin position as percentage of element's size for consistency across devices.

Nature Go

  • Nature Go app encourages screen-free outdoor exploration
  • AI verification layer ensures real outdoor discoveries
  • Open-source model adaptable for diverse communities

More from Sunday 11 October โ†’