|
|
@@ -51,7 +51,7 @@ func (p *CreateAWSHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|
|
AWSIntegration: aws.ToAWSIntegrationType(),
|
|
|
}
|
|
|
|
|
|
- if !p.Config().DisableCAPIProvisioner {
|
|
|
+ if project.CapiProvisionerEnabled {
|
|
|
credReq := porterv1.CreateAssumeRoleChainRequest{
|
|
|
ProjectId: int64(project.ID),
|
|
|
SourceArn: "arn:aws:iam::108458755588:role/CAPIManagement", // hard coded as this is the final hop for a CAPI cluster
|