mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-20 11:48:24 -06:00
Remove Region Condition From CodeCommit Repo Resource (#8778)
This commit is contained in:
parent
068585bdba
commit
7150bafb84
@ -74,13 +74,6 @@ func resourceAwsCodeCommitRepository() *schema.Resource {
|
||||
|
||||
func resourceAwsCodeCommitRepositoryCreate(d *schema.ResourceData, meta interface{}) error {
|
||||
conn := meta.(*AWSClient).codecommitconn
|
||||
region := meta.(*AWSClient).region
|
||||
|
||||
// This is a temporary thing - we need to ensure that CodeCommit is only being run against us-east-1
|
||||
// As this is the only place that AWS currently supports it
|
||||
if region != "us-east-1" {
|
||||
return fmt.Errorf("CodeCommit can only be used with us-east-1. You are trying to use it on %s", region)
|
||||
}
|
||||
|
||||
input := &codecommit.CreateRepositoryInput{
|
||||
RepositoryName: aws.String(d.Get("repository_name").(string)),
|
||||
|
@ -10,6 +10,10 @@ description: |-
|
||||
|
||||
Provides a CodeCommit Repository Resource.
|
||||
|
||||
~> **NOTE on CodeCommit Availability**: The CodeCommit is not yet rolled out
|
||||
in all regions - available regions are listed
|
||||
[the AWS Docs](https://docs.aws.amazon.com/general/latest/gr/rande.html#codecommit_region).
|
||||
|
||||
## Example Usage
|
||||
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user