Questions tagged [user-data]
513 questions
148
votes
8 answers
Clear android application user data
Using adb shell we can clear application data.
adb shell pm clear com.android.browser
But when executing that command from the application
String deleteCmd = "pm clear com.android.browser";
Runtime runtime = Runtime.getRuntime();
…

UdayaLakmal
- 4,035
- 4
- 29
- 40
141
votes
7 answers
How to check whether my user data passing to EC2 instance is working
While creating a new AWS EC2 instance using the EC2 command line API, I passed some user data to the new instance.
How can I know whether that user data executed or not?

Pravin
- 2,871
- 5
- 26
- 29
78
votes
13 answers
User-data scripts is not running on my custom AMI, but working in standard Amazon linux
I searched a lot of topic about "user-data script is not working" in these few days, but until now, I haven't gotten any idea about my case yet, please help me to figure out what happened, thanks a lot!
According to AWS User-data explanation:
When…

Kai
- 843
- 2
- 8
- 8
44
votes
1 answer
cloud-init: What is the execution order of cloud-config directives?
What is the order of the directives in the cloud-config section of a cloud-init user-data object. This is important to avoid race type conditions.
I know bootcmd runs early and before runcmd, but is there a good list of the order of all the…

cgseller
- 3,875
- 2
- 19
- 21
22
votes
2 answers
Does Microsoft have a best practices document regarding the storage of App Data vs User Data on different Windows Platforms?
When creating an application that will be targeted to many versions of Windows what is the best practice to determine where application specific data should be stored. Specifically:
Application Specific Data (e.g. app config data)
User Specific…

Robert Groves
- 7,574
- 6
- 38
- 50
21
votes
6 answers
How do I install docker using cloud-init?
I want to create instances in Openstack that will have Docker in them already installed prior to ssh to them. So naturally I got interested in Cloud-init technology because it allows us to install packages on virtual machines during first boot time.…

lgdelacruz
- 399
- 2
- 4
- 7
20
votes
2 answers
Is it secure to store EC2 User-Data shell scripts in a private S3 bucket?
I have an EC2 ASG on AWS and I'm interested in storing the shell script that's used to instantiate any given instance in an S3 bucket and have it downloaded and run upon instantiation, but it all feels a little rickety even though I'm using an IAM…

AJB
- 7,389
- 14
- 57
- 88
16
votes
1 answer
Do Mobile apps need to comply to the EU Cookie Law?
I've had an interesting question from a client regarding the EU cookie law and how it affects their mobile apps.
As you may well know, the Cookie Law requires websites to let users know that the site uses cookies, and tells them how to disable…

Joss Stuart
- 1,856
- 1
- 17
- 19
14
votes
3 answers
AWS user_data with Packer
So I'm trying to use Packer to create an AWS image and specify some user data via user_data_file. The contents of this file needs to be run when the instance boots as it will be unique each time. I can't bake this into the AMI.
Using packer I have…

David Ficociello
- 2,489
- 5
- 15
- 21
13
votes
2 answers
Multiple user_data File use in Terraform
I am trying to have a common user_data file for common tasks such as folder creation and certain package install and a separate user_data file for application specific configuration
I am trying the below -
user_data =…

Rohit Sarkar
- 293
- 1
- 5
- 15
13
votes
1 answer
Python objects as userdata in ctypes callback functions
The C function myfunc operates on a larger chunk of data. The results are returned in chunks to a callback function:
int myfunc(const char *data, int (*callback)(char *result, void *userdata), void *userdata);
Using ctypes, it's no big deal to call…

flight
- 1,738
- 2
- 14
- 14
12
votes
5 answers
Storage of user data
When looking at how websites such as Facebook stores profile images, the URLs seem to use randomly generated value. For example, Google's Facebook page's profile picture page has the following…

Pav Sidhu
- 6,724
- 18
- 55
- 110
12
votes
1 answer
How to deal with a multiple-user database
My app is like a lot of apps -- it has a login screen where the user enters a username and password, and a login button My app also uses Core Data to save most of the user's business objects, that of course are user-specific.
I also have a sign…

Eyal
- 10,777
- 18
- 78
- 130
9
votes
2 answers
Ubuntu AMI not loading user-data
I am attempting to load user data into an Ubuntu 12.04 LTS AMI (ami-a29943cb, but I've tried a few others to no avail) via boto's ec2.run_instances(..., user_data=USER_DATA). Similarly, I have had no success with manually supplying the user data…

kfr2
- 107
- 1
- 4
8
votes
4 answers
NodeJS not installed successfully in AWS EC2 inside User-data
I've tried to install NodeJS with nvm in AWS EC2 linux as follow inside user-data:
#!/bin/bash
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash
source ~/.bashrc
nvm install 7
After instance is successfully…

PPShein
- 13,309
- 42
- 142
- 227