Skip to content
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

Tutorial : Create M2C Stack #23

Closed
6 tasks
gmarchand opened this issue Mar 13, 2023 · 4 comments
Closed
6 tasks

Tutorial : Create M2C Stack #23

gmarchand opened this issue Mar 13, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@gmarchand
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior.

aws cloudformation create-stack \
  --stack-name \
    m2c-demo \
  --template-url \
    https://solutions-reference.s3.amazonaws.com/media2cloud/latest/media2cloud.template \
  --parameters \
    "ParameterKey=Email,ParameterValue=\"yourname@company.com\"" \
    "ParameterKey=PriceClass,ParameterValue=\"Use Only U.S., Canada and Europe (PriceClass_100)\"" \
    "ParameterKey=OpenSearchCluster,ParameterValue=\"Development and Testing (t3.medium=0,m5.large=1,gp2=10,az=1)\"" \
    "ParameterKey=DefaultAIOptions,ParameterValue=\"All (celeb,face,facematch,label,moderation,person,text,segment,transcribe,keyphrase,entity,sentiment,textract)\"" \
    "ParameterKey=StartOnObjectCreation,ParameterValue=\"NO\"" \
  --capabilities \
    "CAPABILITY_IAM" \
    "CAPABILITY_NAMED_IAM" \
    "CAPABILITY_AUTO_EXPAND"

An error occurred (ValidationError) when calling the CreateStack operation: Parameters: [KnowledgeGraphApiKey, KnowledgeGraphEndpoint, BlipImageArn] must have values

Expected behavior
The stack should deploy

Please complete the following information about the solution:

  • Version: 3.1.0
  • Region: eu-west-1
  • Was the solution modified from the version published on this repository? No
  • If the answer to the previous question was yes, are the changes available on GitHub?
  • Have you checked your service quotas for the sevices this solution uses? yes
  • Were there any errors in the CloudWatch Logs? No

Screenshots
If applicable, add screenshots to help explain your problem (please DO NOT include sensitive information).

Additional context
Add any other context about the problem here.

@gmarchand gmarchand added the bug Something isn't working label Mar 13, 2023
@karolmalinski
Copy link

karolmalinski commented Mar 16, 2023

Hi gmarchand!
I have encountered the same issue. You can workaround this by providing Default values for these parameters in media2cloud.yaml template, like this:

    # Neptune Knowledge Graph endpoint
    KnowledgeGraphEndpoint:
        Type: String
        Description: specify the API endpoint of the Knowledge Graph database. Leave it blank to disable the feature.
        Default: ""
    KnowledgeGraphApiKey:
        Type: String
        Description: specify the API Key of the Knowledge Graph API endpoint. Leave it blank to disable the feature.
        Default: ""
    # BLIP model (auto caption for image)
    BlipImageArn:
        Type: String
        Description: specify the ECR image Arn of the Auto Captioning feature (BLIP model), ie., {{account}}.dkr.ecr.{{region}}.amazonaws.com/{{repo}}:{{tag}}. Leave it blank to disable the feature.
        Default: ""

@gmarchand
Copy link
Author

Yes but I don't want to fix the template by myself. So I found the configuration with the CLI

curl https://solutions-reference.s3.amazonaws.com/media2cloud/latest/media2cloud.template --output media2cloud.template
 aws cloudformation deploy --template-file media2cloud.template --stack-name m2c --parameter-overrides "BlipImageArn=" "KnowledgeGraphEndpoint=" "KnowledgeGraphApiKey=" "Email=toto@tata.fr" "OpenSearchCluster=Suitable for Production Workload (t3.medium=3,m5.large=2,gp2=20,az=2)" --capabilities CAPABILITY_IAM

@raulmlamzn
Copy link

Thank you for your feedback. We have added this request to our backlog for this solution.

@e-thoman
Copy link
Contributor

e-thoman commented Sep 5, 2023

Thanks for letting us know - this should be fixed in the release that came out today.

@e-thoman e-thoman closed this as completed Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants