English 中文(简体)
缩略语
原标题:AWS CDK EC2 user data - copy local file to EC2 instance

在我关于建立EC2的《阿拉伯妇女论坛法典》中,我试图把当地档案交给我的某一地点。

我认为,唯一可以克服的办法是将其上载到CDK法典中的第3页,然后将其上载。

// download from s3 to instance
const localPath = instance.userData.addS3DownloadCommand({
  bucket:asset.bucket,
  bucketKey:asset.s3ObjectKey

// move
instance.user_data.add_commands(
        "#!/bin/bash",
        "mv {localPath} dst”
    )
问题回答




相关问题
SimpleDB vs Tokyo Cabinet

Has anybody compared SimpleDB and Tokyo Cabinet for performance and scalability? I m coding my project against SimpleDB at the moment and considering benchmarking TC, be nice if somebody had already ...

How to make visual studio 2008 deploy to ftp in ACTIVE mode?

I m using Amazon EC2 services and would like to publish my WCF application to this server using the visual studio 2008. Instead of opening so many ports on the amazon firewall, I ll use the ftp ACTIVE ...

Passenger and Rails on Scalr.net

I m having an issue with Passenger and Rails working together on my Scalr application server. I have Rails 2.3.5 installed and Passenger 2.2.7. I am running ruby 1.8.6 (patchlevel 111). Previous ...

Many users, many cpus, no delays. Good for cloud?

I wish to set up a CPU-intensive time-important query service for users on the internet. A usage scenario is described below. Is cloud computing the right way to go for such an implementation? If so, ...

Homemade cheap and cheerful clustering with MySQL+EC2?

I ve got a Java web service backed by MySQL + EC2 + EBS. For data integrity I ve looked into DRBD, MySQL cluster etc. but wonder if there isn t a simpler solution. I don t need high availability (can ...

What s a good way to collect logs from Amazon EC2 instances?

My app is hosted on an Amazon EC2 cluster. Each instance writes events to log files. I need to collect (and data mine) over these logs at the end of each day. What s a recommended way to collect these ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

Need some help choosing between Amazon EC2 and VPS [closed]

At my company we are looking at hosting a blog and a CMS . We are still in the process of building the product and havent made it live yet. We are looking at some hosting options. We need to have ...

热门标签