aws-amplify / amplify-studio

AWS Amplify Studio (Formerly Admin UI)
136 stars 31 forks source link

Removed IAM Roles #677

Closed Lombardoc4 closed 1 year ago

Lombardoc4 commented 2 years ago

Which Specific Feature is your question related to? Cognito

Provide additional details e.g. code snippets I destroyed some IAM roles since they did not display a "last active" attribute. Now I cannot access my data properly.

When I try to reset my auth settings, I cannot:

NoSuchEntity - An error occurred while processing your request: The role with name us-east-1_g9F10WnFw_Manage-only cannot be found.

I'm struggling to figure out what roles to recreate and what access to give them.

Not sure if this helps but here is my aws-export.js:

/* eslint-disable */
// WARNING: DO NOT EDIT. This file is automatically generated by AWS Amplify. It will be overwritten.

const awsmobile = {
    "aws_project_region": "us-east-1",
    "aws_appsync_graphqlEndpoint": "https://iai3fj7vd5hgjc22z4m7kj5tn4.appsync-api.us-east-1.amazonaws.com/graphql",
    "aws_appsync_region": "us-east-1",
    "aws_appsync_authenticationType": "API_KEY",
    "aws_appsync_apiKey": "da2-****",
    "aws_cognito_identity_pool_id": "us-east-1:0afc5fb7-9bb5-45a0-ad98-50a9a38491c0",
    "aws_cognito_region": "us-east-1",
    "aws_user_pools_id": "us-east-1_eW3yGAOvZ",
    "aws_user_pools_web_client_id": "7al4qgvvsu8qkicdsqtl9n4stv",
    "oauth": {},
    "aws_cognito_username_attributes": [
        "EMAIL"
    ],
    "aws_cognito_social_providers": [],
    "aws_cognito_signup_attributes": [],
    "aws_cognito_mfa_configuration": "OFF",
    "aws_cognito_mfa_types": [
        "SMS"
    ],
    "aws_cognito_password_protection_settings": {
        "passwordPolicyMinLength": 8,
        "passwordPolicyCharacters": [
            "REQUIRES_LOWERCASE",
            "REQUIRES_NUMBERS",
            "REQUIRES_SYMBOLS",
            "REQUIRES_UPPERCASE"
        ]
    },
    "aws_cognito_verification_mechanisms": [
        "EMAIL"
    ],
    "aws_user_files_s3_bucket": "gr-movement-storage-e48b8b36191308-staging",
    "aws_user_files_s3_bucket_region": "us-east-1"
};

export default awsmobile;
vakalens commented 2 years ago

Hi, Could you try to disable/enable Amplify Studio in your AWS account (that should reset your login system) and let us know if that made any changes in your situation. Thanks in advance.

ykethan commented 1 year ago

Hey @Lombardoc4, following up on this issue. Please do let us know if the issue has been mitigated.

Lombardoc4 commented 1 year ago

This has been mitigatedAll the best,CrisOn Nov 30, 2022, at 12:44 PM, ykethan @.***> wrote: Hey @Lombardoc4, following up on this issue. Please do let us know if the issue has been mitigated.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

ykethan commented 1 year ago

Thank you for the confirmation closing the issue. Please feel free in reaching out to us again.

Kongbi-Zion commented 5 months ago

Hi everyone.

I just encountered the same issue please does anyone know the way around this

Lombardoc4 commented 5 months ago

Been a while but I am pretty sure I was able to resolve this by deleting all local files, cloning the repo and using a fresh install. Hopefully this helps.

Kongbi-Zion commented 5 months ago

Been a while but I am pretty sure I was able to resolve this by deleting all local files, cloning the repo and using a fresh install. Hopefully this helps.

what I did was I deleted the amplify folder from my project locally and ran "amplify pull" and after that was done I tried to push by using "amplify push" but got an error saying the IAM role was not found so I when to the aws console and created a new IAM role with the same permissions as before but each time I try to push I get this error "Resource is not in the state stackUpdateComplete". please do you know a way around it?