-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
F aws bedrock custom model #34310
F aws bedrock custom model #34310
Conversation
Community NoteVoting for Prioritization
For Submitters
|
@wellsiau-aws @AdamTylerLynch Can you get this tested please? I no longer have an account with access to the Titan Express preview model required to test fine-tuning. |
I'll run these today |
@skyscrapr - I was able to run tests but am getting failures. See below. Happy to collaborate on fixes if you like.
|
@silvaalbert ... hi, thanks for the output. Let me take a look at this today and I'll confirm if we need to connect to resolve. |
95c08cd
to
afa16cd
Compare
@skyscrapr can you please contact me directly? awstyler [@] amazon.com |
Current outputs:
|
% make testacc TESTARGS='-run=TestAccBedrockCustomModel_validationDataConfig' PKG=bedrock ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/bedrock/... -v -count 1 -parallel 20 -run=TestAccBedrockCustomModel_validationDataConfig -timeout 360m === RUN TestAccBedrockCustomModel_validationDataConfig === PAUSE TestAccBedrockCustomModel_validationDataConfig === CONT TestAccBedrockCustomModel_validationDataConfig --- PASS: TestAccBedrockCustomModel_validationDataConfig (39.58s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/bedrock 50.791s
% make testacc TESTARGS='-run=TestAccBedrockCustomModel_kmsKey' PKG=bedrock ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/bedrock/... -v -count 1 -parallel 20 -run=TestAccBedrockCustomModel_kmsKey -timeout 360m === RUN TestAccBedrockCustomModel_kmsKey === PAUSE TestAccBedrockCustomModel_kmsKey === CONT TestAccBedrockCustomModel_kmsKey --- PASS: TestAccBedrockCustomModel_kmsKey (49.63s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/bedrock 60.146s
After a design discussion with @AdamTylerLynch, we decided on this resource lifecycle: This Terraform resource interacts with two Amazon Bedrock entities:
This resource's behaviors correspond to operations on these Amazon Bedrock entities:
|
@ewbankkit @AdamTylerLynch Hey gents. Apologies for dropping this. The customer I was working with put this on hold end of last year. I've been away for all of January and AFK. I'm back on the ground from Monday. Thanks for picking this up. Let me know if there's more to do, and I can continue to work on this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccBedrockCustomModel_validationDataConfigWaitForCompletion' PKG=bedrock
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/bedrock/... -v -count 1 -parallel 20 -run=TestAccBedrockCustomModel_validationDataConfigWaitForCompletion -timeout 360m
=== RUN TestAccBedrockCustomModel_validationDataConfigWaitForCompletion
=== PAUSE TestAccBedrockCustomModel_validationDataConfigWaitForCompletion
=== CONT TestAccBedrockCustomModel_validationDataConfigWaitForCompletion
--- PASS: TestAccBedrockCustomModel_validationDataConfigWaitForCompletion (4376.29s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/bedrock 4389.235s
% make testacc TESTARGS='-run=TestAccBedrockFoundationModel' PKG=bedrock ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/bedrock/... -v -count 1 -parallel 2 -run=TestAccBedrockFoundationModel -timeout 360m
=== RUN TestAccBedrockFoundationModelDataSource_basic
=== PAUSE TestAccBedrockFoundationModelDataSource_basic
=== RUN TestAccBedrockFoundationModelsDataSource_basic
=== PAUSE TestAccBedrockFoundationModelsDataSource_basic
=== RUN TestAccBedrockFoundationModelsDataSource_byCustomizationType
=== PAUSE TestAccBedrockFoundationModelsDataSource_byCustomizationType
=== RUN TestAccBedrockFoundationModelsDataSource_byInferenceType
=== PAUSE TestAccBedrockFoundationModelsDataSource_byInferenceType
=== RUN TestAccBedrockFoundationModelsDataSource_byOutputModality
=== PAUSE TestAccBedrockFoundationModelsDataSource_byOutputModality
=== CONT TestAccBedrockFoundationModelDataSource_basic
=== CONT TestAccBedrockFoundationModelsDataSource_byInferenceType
--- PASS: TestAccBedrockFoundationModelsDataSource_byInferenceType (14.20s)
=== CONT TestAccBedrockFoundationModelsDataSource_byOutputModality
--- PASS: TestAccBedrockFoundationModelDataSource_basic (14.41s)
=== CONT TestAccBedrockFoundationModelsDataSource_byCustomizationType
--- PASS: TestAccBedrockFoundationModelsDataSource_byCustomizationType (13.11s)
=== CONT TestAccBedrockFoundationModelsDataSource_basic
--- PASS: TestAccBedrockFoundationModelsDataSource_byOutputModality (13.34s)
--- PASS: TestAccBedrockFoundationModelsDataSource_basic (11.82s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/bedrock 50.205s
% make testacc-short TESTARGS='-run=TestAccBedrockCustomModel_' PKG=bedrock ACCTEST_PARALLELISM=1
==> Checking that code complies with gofmt requirements...
Running acceptance tests with -short flag
TF_ACC=1 go test ./internal/service/bedrock/... -v -short -count 1 -parallel 1 -run=TestAccBedrockCustomModel_ -timeout 360m
=== RUN TestAccBedrockCustomModel_basic
=== PAUSE TestAccBedrockCustomModel_basic
=== RUN TestAccBedrockCustomModel_disappears
=== PAUSE TestAccBedrockCustomModel_disappears
=== RUN TestAccBedrockCustomModel_tags
=== PAUSE TestAccBedrockCustomModel_tags
=== RUN TestAccBedrockCustomModel_kmsKey
=== PAUSE TestAccBedrockCustomModel_kmsKey
=== RUN TestAccBedrockCustomModel_validationDataConfig
=== PAUSE TestAccBedrockCustomModel_validationDataConfig
=== RUN TestAccBedrockCustomModel_validationDataConfigWaitForCompletion
custom_model_test.go:209: skipping long-running test in short mode
--- SKIP: TestAccBedrockCustomModel_validationDataConfigWaitForCompletion (0.00s)
=== RUN TestAccBedrockCustomModel_vpcConfig
=== PAUSE TestAccBedrockCustomModel_vpcConfig
=== CONT TestAccBedrockCustomModel_basic
--- PASS: TestAccBedrockCustomModel_basic (60.77s)
=== CONT TestAccBedrockCustomModel_kmsKey
--- PASS: TestAccBedrockCustomModel_kmsKey (59.36s)
=== CONT TestAccBedrockCustomModel_vpcConfig
--- PASS: TestAccBedrockCustomModel_vpcConfig (56.68s)
=== CONT TestAccBedrockCustomModel_validationDataConfig
--- PASS: TestAccBedrockCustomModel_validationDataConfig (58.70s)
=== CONT TestAccBedrockCustomModel_tags
--- PASS: TestAccBedrockCustomModel_tags (57.94s)
=== CONT TestAccBedrockCustomModel_disappears
--- PASS: TestAccBedrockCustomModel_disappears (76.31s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/bedrock 380.208s
% make testacc TESTARGS='-run=TestAccBedrockCustomModelDataSource_basic' PKG=bedrock
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/bedrock/... -v -count 1 -parallel 20 -run=TestAccBedrockCustomModelDataSource_basic -timeout 360m
=== RUN TestAccBedrockCustomModelDataSource_basic
=== PAUSE TestAccBedrockCustomModelDataSource_basic
=== CONT TestAccBedrockCustomModelDataSource_basic
--- PASS: TestAccBedrockCustomModelDataSource_basic (4298.45s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/bedrock 4309.648s
% make testacc TESTARGS='-run=TestAccBedrockCustomModelsDataSource_basic' PKG=bedrock
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/bedrock/... -v -count 1 -parallel 20 -run=TestAccBedrockCustomModelsDataSource_basic -timeout 360m
=== RUN TestAccBedrockCustomModelsDataSource_basic
=== PAUSE TestAccBedrockCustomModelsDataSource_basic
=== CONT TestAccBedrockCustomModelsDataSource_basic
--- PASS: TestAccBedrockCustomModelsDataSource_basic (4046.60s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/bedrock 4057.208s
@skyscrapr @AdamTylerLynch Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.35.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
add aws_bedrock_custom_model resource and datasources
Relations
Relates #34148
Closes #33718
References
https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelCustomizationJob.html
https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetCustomModel.html
https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteCustomModel.html
Output from Acceptance Testing