-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR feedback and typo fix for AWS permissions.
PR Feedback for Instance Profile work and fixes typo in AWS permission.
- Loading branch information
Showing
9 changed files
with
115 additions
and
65 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright 2021 Canonical Ltd. | ||
// Licensed under the AGPLv3, see LICENCE file for details. | ||
|
||
package environs | ||
|
||
import ( | ||
"github.com/juju/juju/environs/context" | ||
) | ||
|
||
const ( | ||
// InstanceProfileAutoCreate defines the const value used for the constraint | ||
// when instance profile creation should be done on behalf of the user. | ||
InstanceProfileAutoCreate = "auto" | ||
) | ||
|
||
// InstanceRole defines the interface for environ providers to implement when | ||
// they offer InstanceRole support for their respective cloud. | ||
type InstanceRole interface { | ||
// CreateAutoInstanceRole is responsible for setting up an instance role on | ||
// behalf of the user. | ||
CreateAutoInstanceRole(context.ProviderCallContext, BootstrapParams) (string, error) | ||
|
||
// SupportsInstanceRoles indicates if Instance Roles are supported by this | ||
// environ. | ||
SupportsInstanceRoles(context.ProviderCallContext) bool | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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