Skip to content

Conversation

r4victor
Copy link
Collaborator

Closes #2345

The PR adds iam_instance_profile parameter to AWS config that allows specifying IAM instance profile (role) that will be associated with EC2 instances:

projects:
- name: main
  backends:
  - type: aws
    iam_instance_profile: dstack-test-role
    creds:
      type: default

This can be used to access AWS resources from runs without passing credentials explicitly.

@r4victor r4victor merged commit a78dab6 into master Feb 26, 2025
24 checks passed
@r4victor r4victor deleted the issue_2345_iam_instance_role branch February 26, 2025 08:13
pranitnaik43 pushed a commit to bahaal-tech/dstack that referenced this pull request Mar 5, 2025
* Support iam_instance_profile for AWS

* Fix tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: Assign specific iam role to created aws instances
1 participant