Skip to main content

#AWS S34 personnes en discutent

Kushagra Rajput a posé une question dans #Trailhead

1. We have a community site. 

 2. There we have a page. 

 3. In that page, we have a link. 

 4. On click of that link a file opens up. the requirement is that only 'logged in user' should be able to open and see the file. 

 5. Nobody else should able to see it. 

 

More info using scenerio:- File should only opened with the help of click within the community site. After opening the file. If somebody copy the URL from address bar and then pasted in the 'incognito mode' then file should not be opened.  

 

Current progress:- 

 

I researched about and got solution related to pre-signed Url but i think it's the solution with help of code. I searching for any workaround using configuration within the AWS account.  

 

Any help would be appreciated. 

 

#Trailhead  #Experience Cloud  #Experience Site  #AWS S3  #AWS  #Lightning Aura Components  #Salesforce Developer  #Salesforce Admin

5 réponses
  1. Hier, à 15:42

    Hi Kushagra, 

     

    Yes, creating an IAM user is the correct path, and it's confirmed by AWS's own official documentation, not just common practice. AWS explicitly recommends creating an IAM user with least-privilege permissions first, then generating access keys under that IAM user, never using your AWS root account credentials for this. 

     

    Steps to get your Access Key and Secret Key (official AWS process): 

     

    1. Log into the AWS Console with your root/admin account (only for this setup step, not for ongoing use). 

    2. Go to IAM > Users > click "Create user". 

    3. Give it a descriptive name, e.g. salesforce-s3-integration. 

    4. Do NOT enable AWS Management Console access, this user only needs programmatic access, not console login. 

    5. Attach a permission policy scoped only to what's needed, ideally a custom policy limited to s3:GetObject on your specific bucket/prefix, not full S3 access. This follows AWS's least-privilege guidance. 

    6. After the user is created, go to that user > Security credentials tab > Access keys section > "Create access key". 

    7. Select the use case (choose "Application running outside AWS" or similar, matching your Apex callout scenario). 

    8. AWS shows you the Access Key ID and Secret Access Key ONCE. Download the CSV or copy both immediately, the Secret Access Key cannot be retrieved again after this screen, you'd have to delete and recreate the key if lost. 

     

    Official reference:

    https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html

     

     

    Important note on "is this the only way": Technically no, AWS's own best-practice guidance actually recommends AGAINST long-term access keys where avoidable, and prefers IAM Roles with temporary/short-term credentials (via AWS STS) since those auto-expire and reduce risk if leaked. 

    Official reference:

    https://docs.aws.amazon.com/IAM/latest/UserGuide/security-creds-programmatic-access.html

     

     

    However, for a Salesforce Apex integration specifically, since Apex runs outside AWS and can't assume an IAM role directly the way an EC2/Lambda service can, using a scoped-down IAM user with long-term access keys (stored securely in Named Credential/Protected Custom Metadata, as I mentioned earlier) is the practical and accepted approach here. Just make sure to: 

    - Scope the policy to only that one bucket/prefix 

    - Rotate the access key periodically 

    - Never commit it to code, always pull from Named Credential/Custom Metadata at runtime 

     

    So to directly answer: yes, IAM user + access key is the right and standard way for your use case.

0/9000
Satish Kunduru a posé une question dans #S3 Bucket

External Data Source validate and sync show success 

Permissions are enabled through permission sets 

Error shows "Looks like you don't have the permission to upload files. Your Salesforce admin can help with that" 

 

#S3 Bucket  #AWS S3  #Various External Storage Systems

2 réponses
  1. 27 août, 18:43

    Hi Himanshu, Thanks for your reply.  

     

    I have the Files Connect Cloud and External Ceredential Access enabled for the user. Still throws the same error. 

0/9000

Are you trying to ingest data from an AWS S3 bucket, but you are not sure how to get the AWS S3 ready for Data Cloud? Follow the simple 7 steps described in the article below (with supporting videos).

This article is being written as supplementary information for a session that I am delivering at the New York World Tour '23

#salesforceworldtour

to help my students understand how they can create AWS S3 buckets and load CSV files that can be ingested by Data Cloud.

Looking forward to meeting students at the New York World Tour ‘23 this week! We'll have a great time on the hands-on workshop where you will understand what Data Cloud is all about.

I am planning on writing more Data Cloud blogs, so stay tuned and follow me at LinkedIn @ELTOROIT

https://www.linkedin.com/posts/eltoroit_salesforceworldtour-ugcPost-7140124497868705792-15AU?utm_source=share&utm_medium=member_ios#Data Cloud #AWS S3
0/9000
Mohit Pant a posé une question dans #Ask An Expert

Is there any preferred ISV or solution to manage document sync between salesforce (sales, service) and AWS S3, lots of attachment, files, email attachment is expected to land in salesforce , which needs to be moved in AWS S3 with a link #DOCUMENTS #AWS S3 #Content Document Link

3 réponses
  1. 16 févr. 2022, 20:08

    Hi @Mohit Pant,

     

    XfilesPro as a Salesforce File Management solution could be one that you can look into to sync files and attachments with AWS S3. This guide can be helpful for you.

     

    Thanks.

0/9000

Hello my Tableau community friends!

 

Does anyone know how the S3 to Tableau connection works behind the scenes? I am specifically looking for how Salesforce deals with delta vs full loads. My current process appears to re-sync all files from my folder / bucket each time. This is causing both my sync time and AWS costs to increase quite a bit each day. If this is the case, is there a way to set the sync up to only pull the file deltas? Do I need to specify a key in the files somehow?

 

Thank you!

 

Jason

1 commentaire
  1. 29 avr. 2021, 18:19
    Hi! We use a Big Query connection and as far as I know there isnt a way to pull just deltas. The Data connection sync does a full sync each time. Delta pulls I believe are only available on standard salesforce objects because the data syncs to the standard salesforce objects use the last modified date to determine the delta rows.
0/9000

Hello All, Does anyone know of any apps that helps to download files from AWS S3 bucket to Salesforce or is this requirement possible only via programming?

1 commentaire
  1. 7 mars 2021, 18:46
    HI Sireesha, If you need an extension to view/upload/manage files (and especially images) to/from your S3 in a secure way and getting those associated to specific records, you can give a try to SharinPix on the AppExchange which is covering this with many different options. Don't hesitate to reach me by Direct Message if you want a demo or learn more!
0/9000

Hi All,

 

Is there a way to do a REST callout  from FSL APP. We have a requirement to fetch images stored in AWS S3 bucket & show them to technicians on demand(not actually storing them in SF).

Appreciate any help here. 

7 commentaires
  1. 17 juin 2020, 21:08
    Hi all, in the Summer '20 release, we added the ability for mobile extension pilot, where the bundle can callout to external REST API if the endpoint is configured as a CSP Trusted Site.
0/9000

Hi All, With each release, Einstein Analytics Product team is adding multiple data connectors on the platform. In case, If you would like to explore how you can connect AWS S3 Bucket with your EA instance. I have explained the full step by step approach in the link below.

 

AWS S3 & EA Integration - https://salesforce-trailblazer.com/aws-s3-einstein-analytics/

 

Thank you,

Varun

0/9000

Hi All, I amusing GRAX DATA LAKE to take back up saleforce data on AWS S3, is there any way to pull from AWS S3 to einstein analytic?

 

I already tried external dataset, it picks only .csv fie.

 

Thanks in advance

11 commentaires
0/9000